Jump to content

Glow Shader not working?


Recommended Posts

I'm trying to get a glow shader working on one of my skins. I made the normal textures as well as a "_glow" texture where everything is black except what I want to glow. I've made a shader file that looks like this:

 

models/players/BOTDRAmando

{

{

map models/players/BOTDRAmando/jangohelm

blendFunc GL_ONE GL_ZERO

rgbGen lightingDiffuse

}

{

map models/players/BOTDRAmando/jangohelm_glow

blendFunc GL_ONE GL_ONE

rgbGen identity

detail

glow

}

}

 

I put that into a PK3, with the textures being in models/player/BOTDRAmando and the shader being in shaders/BOTDRAmando.

 

Thoughts?

Link to comment
PK3 just has shader/BOTDRAmando.shader

should be shaders/BOTDRAmando.shader or was that just a typeo?

 

Anyways, I don't know exactly how it works, but this is a working mando helmet glow shader on my model, so it might be of use:

models/players/mug_custom/Helmet
{ 
{
map models/players/mug_custom/Helmet
rgbGen lightingDiffuse
}
{
map GFX/Effects/skirata
blendfunc add
rgbGen lightingDiffuse
tcGen environment 
}
{
map GFX/Effects/visionn_glow
blendFunc GL_SRC_ALPHA GL_SRC_ALPHA
tcMod scroll 3 0.5
}
{
map models/players/mug_custom/Helmet
blendfunc blend
rgbGen lightingDiffuse
}
{
map GFX/Effects/skirata
blendFunc GL_DST_COLOR GL_SRC_COLOR
tcGen environment
}
{
map models/players/mug_custom/Helmet_glow
blendFunc GL_ONE GL_ONE
glow
rgbGen identity
}
}

Link to comment

Here is how my skin uses glow:

 

 

{

map models/players/jeditrainer/trainer_parts_KJC1_glow

blendFunc GL_ONE GL_ONE

glow

}

 

 

Perhaps you have another old shader file that is overwriting your new one?

Edited by SiLink
Link to comment

There were a couple unnecessary lines I forgot to cut out of MUG's shader. Though, @@Inyri, I am having another problem... I did a copy of the same skin on the base Boba model. I used the same shader and changed the file paths accordingly, nothing. I quadruple checked all the spellings of the filepaths and made sure my original texture files were properly named as well, no dice. Ideas?

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