Jump to content

Glowing shader


Go to solution Solved by eezstreet,

Recommended Posts

Greetings everybody, 

 

I created a glowing shader for my weapon model, but this only works in Multiplayer (in SP the texture doesn't glowing), somebody know why ? 

 

Here is my shader:

models/weapons2/customweapon/customweapon
{
    {
        map models/weapons2/customweapon/customweapon
        blendFunc GL_ONE GL_ZERO
        rgbGen lightingDiffuse
    }
    {
        map models/weapons2/customweapon/customweapon_glow
        blendFunc GL_ONE GL_ONE
        rgbGen identity
        detail
        glow
    }
	
}
Link to comment

There's a setting called "detailed shaders" which mrwonko is referring to. It'll be under advanced settings. Make sure this is enabled.

It is enabled, maybe I need to write an another shader for single player ? Or is it should work for both MP and SP ?

Link to comment

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...