Jump to content

Shader issue


Recommended Posts

Posted

As the title says, I'm having an issue with the shader file for my map.
The glow appears to work, but its had an unexpected (and unwanted) side effect, the shader is now see through.
 

  Reveal hidden contents


Realistically the shader itself isn't complex and is fairly standard, so I'm not sure exactly what the issue is?
I typically use the same shader for all my lights and light source3s, and can't recall having this issue previously.
Did I F-up the shader?

 

  Reveal hidden contents

Any thoughts or input would be greatly appreciated.

Check out some of my previous works:
JK Hub - [Editor: Zero Raven]

Posted (edited)

Both stages of your shader have a blendFunc on them, so they end up blending into what's behind them.

Assuming you want the shader to be lightmapped, just add a lightmap stage before the other two, with no blendFunc on it. The texture will then blend into the lightmap, instead of the background.

Sorry for the formatting errors, I'm on mobile:

  Reveal hidden contents

Edit: Also, rgbGen const ( 1.00 1.00 1.00 ) does nothing, you can just remove it.

Edited by NAB622
ooeJack and ZeroRaven like this
Posted

environment mapping with a ligth shader can create really weird results, you may have to put a real low number on it. But i think i have seen it before, in an Immenor map where he experimented with ligths, reflective floors and creating the metallic shine. It was a concept map, dont think he ever released it.

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