Delmi Posted January 26, 2013 Posted January 26, 2013 Hello! I'm wondering if anyone can help me with a small issue I'm having with a shader: The area circled is supposed to have a "glassy" look, but instead it shows up as a blank grey texture. Can someone please tell me what I'm doing wrong and how I can fix it? My shader code is below. Cheers! models\weapons2\test\glass { { map models\weapons2\test\glass blendFunc GL_SRC_ALPHA GL_ONE alphaGen const 0.10 rgbGen lightingDiffuse } { map textures\common\env_chrome blendFunc GL_SRC_ALPHA GL_ONE alphaGen const 0.10 tcGen environment } }
Inyri Posted January 27, 2013 Posted January 27, 2013 Maybe you should clarify what you define as "a glassy look". Do you mean you're expecting it to be transparent, or just shiny? Regardless, your screenshot is WAY too small to be of any real use. Without knowing what your base texture looks like it's also very difficult to tell if your shader isn't working, or if it's working perfectly and you're just using the wrong shader.
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