Guest User

Untitled

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