View Single Post
Old 04-15-10, 12:00 PM   #2
panosrxo
Planesman
 
Join Date: Jan 2010
Location: Greece
Posts: 188
Downloads: 115
Uploads: 0
Default

Quote:
Originally Posted by Captain von Keldunk View Post
Good luck with with your gradient line work
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
thanks, I will do my experiments
panosrxo is offline   Reply With Quote