source:
data/branches/Shader_HS18/programs/Example/Cg/GlassFP.cg
@
12091
| Last change on this file since 12091 was 12083, checked in by wiesep, 7 years ago | |
|---|---|
| File size: 269 bytes | |
| Line | |
|---|---|
| 1 | sampler2D RT : register(s0); |
| 2 | sampler2D NormalMap : register(s1); |
| 3 | |
| 4 | float4 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.










