Shader Help
Posted: Sat Oct 29, 2011 8:31 pm
Hello guys!
I'm giving some final touchs to a fun CAH map made by Swi!t.
I'm facing a problem and so i need your help.
I've a decal on the wall (gold symbol) and so, I added surfacelight 25 t it, and now i want it to reflect light, or at least give that effect.
I've this shader for the decal:
And this one for the reflection:
I want t put the 2 of them together, so it works on the "aztec" texture - the decal.
How do i put them in 1 shader?
I'm giving some final touchs to a fun CAH map made by Swi!t.
I'm facing a problem and so i need your help.
I've a decal on the wall (gold symbol) and so, I added surfacelight 25 t it, and now i want it to reflect light, or at least give that effect.
I've this shader for the decal:
Code: Select all
textures/aztek/aztec
{
qer_editorimage textures/aztek/aztec.tga
polygonOffset
nomipmaps
nopicmip
surfaceparm trans
q3map_surfacelight 25
{
map textures/aztek/aztec.tga
blendfunc filter
}
}
And this one for the reflection:
Code: Select all
textures/aztek/chrome
{
surfaceparm detail
surfaceparm nodamage
surfaceparm nomarks
qer_editorimage textures/aztek/aztec.tga
{
map textures/aztek/chrome_tint.tga
tcGen environment
}
{
map textures/aztek/aztec.tga
blendFunc GL_ONE GL_ONE
tcMod scale 8 8
rgbGen identity
}
{
map $lightmap
rgbgen identity
blendFunc GL_DST_COLOR GL_ZERO
}
}
I want t put the 2 of them together, so it works on the "aztec" texture - the decal.
How do i put them in 1 shader?