Guest User

Untitled

a guest
Mar 20th, 2016
499
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. float4 sLightColor = float4(1,1,1,1);
  2. texture sTex0;
  3.  
  4. sampler Sampler0 = sampler_state
  5. {
  6. Texture = (sTex0);
  7. };
  8.  
  9. float4 PixelShaderPS(float4 TexCoord : TEXCOORD0, float4 Position : POSITION, float4 Diffuse : COLOR0) : COLOR0
  10. {
  11. float4 tex = tex2D(Sampler0, TexCoord);
  12. float4 output = saturate(tex * sLightColor);
  13. return output;
  14. }
  15.  
  16. technique shader_tex_replace
  17. {
  18. pass P0
  19. {
  20. PixelShader = compile ps_2_0 PixelShaderPS();
  21. }
  22. }
  23.  
  24. technique fallback
  25. {
  26. pass P0
  27. {
  28. }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment