Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/branches/Shader_HS18/programs/Cg/GlassFP.cg @ 12373

Last change on this file since 12373 was 12115, checked in by wiesep, 6 years ago

Changed folder structure, deletet some unused files and cleaned up code

File size: 260 bytes
RevLine 
[12115]1sampler2D RT : register(s0);
2sampler2D NormalMap : register(s1);
3
4float4 main_ps(float4 pos : POSITION, float2 iTexCoord : TEXCOORD0) : COLOR
5{
6        float4 normal = 2 * (tex2D(NormalMap, iTexCoord * 2.5) - 0.5);
7
8        return tex2D(RT, iTexCoord + normal.xy * 0.05);
9}
Note: See TracBrowser for help on using the repository browser.