Water And Color
moultano
Creator of ns_shiva. Join Date: 2002-12-14 Member: 10806Members, NS1 Playtester, Contributor, Constellation, NS2 Playtester, Squad Five Blue, Reinforced - Shadow, WC 2013 - Gold, NS2 Community Developer, Pistachionauts
<div class="IPBDescription">the effect in the distance</div> When under certain water, there is a fade effect in the distance. This seems to be tied to the water texture that is used. Is there any way to get this effect on custom water textures? I've found the halflife water textures to be far too bright when combined with an env_gamma.
Comments
[EDIT] Well I was close
<!--QuoteBegin--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin--><a href='http://www.telefragged.com/wally/Texture_Tutorial.htm' target='_blank'>http://www.telefragged.com/wally/Texture_Tutorial.htm</a>
Fog color is handled by certain color registers in the texture: a color register is a palette location. Color register 0 is the first color of the palette, color register 255 is the last. Fog color is handled by color register 3 in a water texture, and the fog density is handled by color register 4. The density value is drawn from the R value of that register (G and B are ignored), so pure red is the densest fog and black is the least dense fog.<!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
[EDIT] Well I was close
<!--QuoteBegin--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin--><a href='http://www.telefragged.com/wally/Texture_Tutorial.htm' target='_blank'>http://www.telefragged.com/wally/Texture_Tutorial.htm</a>
Fog color is handled by certain color registers in the texture: a color register is a palette location. Color register 0 is the first color of the palette, color register 255 is the last. Fog color is handled by color register 3 in a water texture, and the fog density is handled by color register 4. The density value is drawn from the R value of that register (G and B are ignored), so pure red is the densest fog and black is the least dense fog.<!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd--> <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
holy cow, thanks man