Jump to content

Shader help!


Recommended Posts

Posted

Hello!

 

I'm wondering if anyone can help me with a small issue I'm having with a shader:

 

shaderfail_zps0febf1e1.jpg

 

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
    }
 
}
Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...