Jump to content

Gold shader


Recommended Posts

I've read this - https://jkhub.org/topic/10479-best-shiny-floor-shader/ - topic, but it seems to be going towards mirror effect rather than to what I'm trying to achieve, so I've decided to make another thread. I've spent some time trying to create a shader that would allow my model to look like a golden statue; shiny, sure, even with a large "mirror effect" but certainly not just pure bathroom-mirror effect. :P 

 

I've used the enviro shader that goes like this:
 

models/map_objects/pomnik_onderon/elia_neck
{
	qer_editorimage	models/map_objects/pomnik_onderon/elia_neck
	q3map_nolightmap
    {
        map models/map_objects/pomnik_onderon/elia_neck
        rgbGen vertex
    }
    {
        map models/map_objects/pomnik_onderon/gold_enviro
        blendFunc GL_DST_COLOR GL_ONE
        tcGen environment
    }
}

And it looks very good, just like shiny gold... as far as I don't move. Any small movement makes the light move chaotically, it looks like it's animated, but in a really wrong manner, without any logic.

 

So, any good shader for a gold effect?

Droidy365 and Smoo like this
Link to comment

This is just a shot in the dark but maybe try this?

models/map_objects/pomnik_onderon/elia_neck
{
	 qer_editorimage models/map_objects/pomnik_onderon/elia_neck
	 q3map_lightmapsamplesize 1x1
{
	 map $lightmap
	 rgbGen identity
}
{
	 map models/map_objects/pomnik_onderon/elia_neck
	 blendFunc GL_DST_COLOR GL_ZERO
}
{
        map models/map_objects/pomnik_onderon/gold_enviro
        blendFunc GL_DST_COLOR GL_SRC_COLOR
        tcGen environment
}
}

Bart and Smoo like this
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...