Line | |
---|
1 | void main_vs(float4 position : POSITION, |
---|
2 | float3 uv : TEXCOORD0, |
---|
3 | out float4 oPosition : POSITION, |
---|
4 | out float3 oUv : TEXCOORD0, |
---|
5 | uniform float4x4 worldViewProj) |
---|
6 | { |
---|
7 | position.w = 1.0f; |
---|
8 | oPosition = mul(worldViewProj, position); |
---|
9 | oUv = uv; |
---|
10 | } |
---|
11 | |
---|
12 | void main_fp(float4 position : POSITION, |
---|
13 | float2 uv : TEXCOORD0, |
---|
14 | out float4 colour : COLOR, |
---|
15 | uniform sampler2D Image : register(s0), |
---|
16 | uniform sampler2D Thaw : register(s1)) |
---|
17 | { |
---|
18 | float4 l_color0 = tex2D(Image,uv); |
---|
19 | float4 l_color1 = tex2D(Thaw,uv); |
---|
20 | |
---|
21 | colour = l_color0 * l_color1; |
---|
22 | //colour = l_color1; |
---|
23 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.