Two questions about shaders
Posted: Sun Jul 24, 2011 11:40 am
I'm trying to change the color of a white fade using a shader but I'm having problems. This is the shader script:
cube.tga has the white fade and I tried to change it to cyan (0 1 1), what I'm doing wrong?
I have also a question about gtkradiant. Would be useful to see the two shades in the textures window but when I don't set the editorimage key it puts a "shader image missing" and when I set it with the shader as a texture it puts the same. If I'm not wrong netradiant puts the shader image even without the need of the key, can't gtkradiant (1.5) do the same?
Code: Select all
textures/vr2/blue_cube
{
qer_editorimage textures/vr2/cube.tga
surfaceparm trans
cull disable
polygonoffset
q3map_nolightmap
qer_trans 1
{
map textures/vr2/cube.tga
rgbGen const ( 0 1 1 )
blendfunc blend
}
}
I have also a question about gtkradiant. Would be useful to see the two shades in the textures window but when I don't set the editorimage key it puts a "shader image missing" and when I set it with the shader as a texture it puts the same. If I'm not wrong netradiant puts the shader image even without the need of the key, can't gtkradiant (1.5) do the same?