Quote:
Originally Posted by Captain von Keldunk
I did my sky work in "SkyPS_SH5" shader file, very experimental
as I do not really know how to work with shaders. 
see here
// 1. base gradient, from top to bottom
float heightRatio = (pow(In.eyeDir.w / 992.0 , g_skyBottomColor.w)) * 1.3 ;
color = lerp(g_skyBottomColor.rgb, g_skyTopColor.rgb,heightRatio);
I added "* 1.3" hope you will have a better luck 
|
Yes, that is the place where the sky gradient is generated.
SH5 used in contrast to his predecessors for the gradient not a texture.
The pixel shader generates here a color for each pixel in dependence to his height in the sky. A linear interpolation ( lerp() ) between top and bottom color values is used. The input values comes from the EnvColor_???.cfg's