New with shaders..need help
Posted: Sun Mar 13, 2005 12:41 am
So I've finally decided to do my own custom textures/shaders. I've got most of the textures done, and I need to do some really basic shader stuff..ie. lights.
I basically just copied one of the id shaders and replaced the texture names with mine, and it's simply not working. The texture shows up in-game, but it doesn't act like a light should (emitting light, no bullet marks ect..)
Here's what the shader looks like:
The texture is blue4stripes.jpg which is in baseq3/textures/hippy
(Sidenote: I have no idea what most of that stuff means..though I'm trying to leran.)
Thanks for any help
I basically just copied one of the id shaders and replaced the texture names with mine, and it's simply not working. The texture shows up in-game, but it doesn't act like a light should (emitting light, no bullet marks ect..)
Here's what the shader looks like:
Code: Select all
textures/hippy/blue4stripes_1000
{
qer_editorimage textures/hippy/blue4stripes.jpg
surfaceparm nomarks
q3map_surfacelight 1000
{
map $lightmap
rgbGen identity
}
{
map textures/hippy/blue4stripes.jpg
blendFunc GL_DST_COLOR GL_ZERO
rgbGen identity
}
{
map textures/hippy/blue4stripes.blend.jpg
rgbGen wave sin 0.6 0.1 .1 .1
blendFunc GL_ONE GL_ONE
}
}
(Sidenote: I have no idea what most of that stuff means..though I'm trying to leran.)
Thanks for any help