PDA

View Full Version : making a shader


aaw*s.n.a.f.u.*
10-15-2003, 04:34 PM
how do i make a valid shader file i tried to figure it out for myself but failed
:(

silverwest
10-15-2003, 07:45 PM
Make the shader in notepad. When you save it, save it as "yourshadername.shader" WITH the quotation marks around it, in the shaders folder. (When you edit it in the future, you can just hit ctrl-s to save.) Then open up shaderlist.txt in the shaders folder, and add a line to the bottom that says yourshadername. Save, then flush and reload shaders in Radiant.

Lil Killa
10-15-2003, 08:25 PM
there is no need for the "" quotes they are a waste of space if not something to screw the sader up.

reaper1576
10-15-2003, 10:28 PM
here this may help you just change it to the images you want to use its for light emiting shader


textures/01narshadda/narwalllight01
{
q3map_lightimage textures/01narshadda/horiz_glow
qer_editorimage textures/01narshadda/10783
q3map_surfacelight 340
q3map_lightsubdivide 156
q3map_material SolidMetal
{
map $lightmap
}
{
map textures/01narshadda/10783
blendFunc GL_DST_COLOR GL_ZERO
}
{
map textures/01narshadda/horiz_glow
blendFunc GL_ONE GL_ONE
}
}

silverwest
10-16-2003, 07:22 PM
dbl. post

silverwest
10-16-2003, 07:23 PM
the quotes are how you tell Notepad not to stick .txt at the end of your filename. They don't end up as part of the actual filename.

GothiX
10-16-2003, 07:56 PM
You can also type *.* the press enter, then yourname.shader and save.

aaw*s.n.a.f.u.*
10-17-2003, 05:25 AM
a light emitting shader is useful thank you but can someone please post an example of what a shader script should look like for just a standard wall or floor shader all help is muchly appreciated :)