Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- float4 sLightColor = float4(1,1,1,1);
- texture gTexture0 < string textureState="0,Texture"; >;
- sampler Sampler0 = sampler_state
- {
- Texture = (gTexture0);
- };
- float4 PixelShaderPS(float4 TexCoord : TEXCOORD0, float4 Position : POSITION, float4 Diffuse : COLOR0) : COLOR0
- {
- float4 tex = tex2D(Sampler0, TexCoord);
- float4 output = saturate(tex * sLightColor);
- return output;
- }
- technique shader_tex_replace
- {
- pass P0
- {
- PixelShader = compile ps_2_0 PixelShaderPS();
- }
- }
- technique fallback
- {
- pass P0
- {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment