GPChannel Posted March 10, 2018 Posted March 10, 2018 Hello guysI want to make a new water effect,with little changes.I use the bespin water,and i can see through the texture.How can i disable it in the shader file?
Droidy365 Posted March 11, 2018 Posted March 11, 2018 Do you want it to look opaque (so that you can't see through it)?
AshuraDX Posted March 11, 2018 Posted March 11, 2018 This depends largely on the shader and the source texture. textures/bespin/water3 { qer_editorimage textures/bespin/water1 surfaceparm nonsolid surfaceparm nonopaque surfaceparm water surfaceparm fog surfaceparm trans q3map_material Water q3map_nolightmap q3map_onlyvertexlighting fogparms ( 0.113725 0.137255 0.380392 ) 1024.0 { map textures/bespin/water1 blendFunc GL_ONE GL_ZERO rgbGen exactVertex alphaGen const 1 tcMod scroll 0.005 0.01 tcMod turb 1 0.03 0 0.3 } { map textures/bespin/water1 blendFunc GL_ONE GL_SRC_ALPHA rgbGen exactVertex alphaGen const 0.5 tcMod scroll -0.005 -0.01 tcMod turb 0 -0.03 0.5 -0.3 } } This should work for you, put this in a shader file and you will find a new water3 shader under bespin.
Langerd Posted March 11, 2018 Posted March 11, 2018 I also suggest on paying attention on the envoirment where you want to add water. In dark areas caves or destroyed bases there will be no reflections. I also recommend to pay attention is water is clean or not. They water in lakes for example are dark and brownish because of mud and dirt.
RebelChum Posted March 12, 2018 Posted March 12, 2018 Aren't all of the water shaders that come with the game already opaque?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now