Jump to content

Shader Help Please


Recommended Posts

Posted

I am going to post various shaders and hopefully get the community to help me fix some of the screwy ones.

 

Any ideas as to why this shader sux? I will view the model from the left and it looks good... then if I strafe to the right, it fades to black until when I am all the way to it's right side, it goes black and I cannot see anything.

 

 

 

 


models/map_objects/tiefacility/box_panel_vented
{
{
map models/map_objects/tiefacility/box_panel_vented_diff
blendFunc GL_ONE GL_ZERO
rgbGen lightingDiffuse
}
{
map models/map_objects/tiefacility/box_panel_vented_spec
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_COLOR
detail
alphaGen lightingSpecular
}
{
map models/map_objects/tiefacility/tiehallreflect
blendFunc GL_DST_COLOR GL_SRC_COLOR
tcMod scale 1 2
tcGen environment
}
{
map models/map_objects/tiefacility/box_panel_vented_diff
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
rgbGen lightingDiffuse
}
}

 

 

 

Also, I remember back in the day a keyword for the shaders to reduce the amount of tcGen environment... Anyone know what I'm referring to?

 

 

Thank you!

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