Creating a water shader...


(Mr. Repair) #1

Is there a way I could take one of the existing water shaders like the Oasis one and make it murkier and not so bright on the top? Any help appreciated. :slight_smile:


(sock) #2

The transparency of the water shader is done via the alpha channel of the texture. Create a new texture based on the existing one. Change the alpha channel. Save the texture as a new one. Create a new shader based on an existing one. Add your new shader to the shaderlist.txt file in the scripts directory.

Look in the liquids_sd directory for examples. Do not modify/save an existing texture in that directory because it will affect all other maps that use them. Remember to create a new texture based on textures in that directory.

Sock
:moo: z0r