Jump to content

Text Decal Shader Issues


Recommended Posts

I'm trying to make some decals for the purposes of putting text on walls. Trying to use a shader combined with a .png with a transparent background. The issue is that the text is usually full bright and I want it to use the level lighting if possible. 

 

Here is the shader I'm using, is there a better way to go about this? Should I make the texture a jpg with a black background and use some other kind of blendfunc?

textures/mapname/labels
{
	qer_editorimage	textures/mapname/labels
	polygonOffset
	q3map_nolightmap
	q3map_onlyvertexlighting
    {
        map textures/mapname/labels
        blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
    }
}
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...