ares_games
  • Member for 9 years
  • Last seen more than 3 years ago
The saturate function is not working in my pixel shader
0 votes

The result must be store in a separate variable before return like float4 c = saturate(xAmbientColor * xAmbientIntensity); return c;

View answer
How to implement input-texture limited alphablending of 2 textures with HLSL?
0 votes

Interestingly, the following code works. But why? float4 main(float4 color : COLOR0, float2 texCoord : TEXCOORD0) : COLOR0 { // Look up color from partly transparent existing texture (...

View answer