PDA

View Full Version : Dump sabers.shader for a new, smaller file?


Lathain Valtiel
10-24-2005, 07:53 PM
There is no point in overwriting sabers.shader. It is wasteful, and 3/4ths of it is just the stuff already in sabers.shader. There is absolutely no requirement to my knowledge that the RGB saber shaders need to be in sabers.shader.

Hence, I suggest you axe the sabers.shader in OJP, and add this:

gfx/effects/sabers/rgb_glow
{
cull twosided
{
map gfx/effects/sabers/rgb_glow2
blendFunc GL_ONE GL_ONE
glow
rgbGen vertex
}
}

gfx/effects/sabers/rgb_line
{
cull twosided
{
map gfx/effects/sabers/rgb_line
blendFunc GL_ONE GL_ONE
rgbGen vertex
}
}

gfx/effects/sabers/rgb_core
{
cull twosided
{
map gfx/effects/sabers/rgb_core
blendFunc GL_ONE GL_ONE
rgbGen identity
}
}

gfx/effects/sabers/black_glow
{
cull twosided
{
clampmap gfx/effects/sabers/black_glow
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
glow
rgbGen identity
alphaGen vertex
}
}

gfx/effects/sabers/black_line
{
cull twosided
{
clampmap gfx/effects/sabers/black_line
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
rgbGen identity
alphaGen vertex
}
}

gfx/effects/sabers/blacksaberBlur
{
cull twosided
{
clampmap gfx/effects/sabers/black_trail_glow
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
rgbGen identity
alphaGen vertex
glow
}
{
clampmap gfx/effects/sabers/black_trail_core
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
rgbGen identity
alphaGen vertex
}
}

gfx/effects/sabers/blacksaberBlurRGB
{
cull twosided
{
clampmap gfx/effects/sabers/black_trail_glow
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
rgbGen vertex
alphaGen vertex
glow
}
{
clampmap gfx/effects/sabers/black_trail_core
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
rgbGen identity
alphaGen vertex
}
}

gfx/effects/sabers/saberBlur
{
cull twosided
{
clampmap gfx/effects/sabers/blurglow
blendFunc GL_ONE GL_ONE
glow
rgbGen vertex
}
{
clampmap gfx/effects/sabers/blurcore
blendFunc GL_ONE GL_ONE
rgbGen identity
}
}

gfx/effects/sabers/swordTrail
{
qer_editorimage gfx/effects/sabers/blurglow
nopicmip
nomipmaps
cull twosided
{
clampmap gfx/effects/sabers/swordtrail
blendFunc GL_ONE GL_ONE
glow
rgbGen vertex
}
}


...to another shader file, maybe rgbsabers.shader.

razorace
10-25-2005, 12:54 AM
Bah, that's annoying. It wouldn't be a problem if saber modders weren't so lazy.

I'll work on it.