examples/data/ex_shader_multitex_pixel.hlsl
raw| 1 | texture al_tex; |
| 2 | sampler2D s1 = sampler_state { |
| 3 | texture = <al_tex>; |
| 4 | }; |
| 5 | texture tex2; |
| 6 | sampler2D s2 = sampler_state { |
| 7 | texture = <tex2>; |
| 8 | }; |
| 9 | |
| 10 | float4 ps_main(VS_OUTPUT Input) : COLOR0 |
| 11 | { |
| 12 | float4 color = tex2D(s2, frac(Input.TexCoord * 100)); |
| 13 | return color * tex2D(s1, Input.TexCoord); |
| 14 | } |