Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

making a shader

Page: 1 of 1
 aaw*s.n.a.f.u.*
10-15-2003, 3:34 PM
#1
how do i make a valid shader file i tried to figure it out for myself but failed
:(
 silverwest
10-15-2003, 6:45 PM
#2
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, 7:25 PM
#3
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, 9:28 PM
#4
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, 6:22 PM
#5
dbl. post
 silverwest
10-16-2003, 6:23 PM
#6
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, 6:56 PM
#7
You can also type *.* the press enter, then yourname.shader and save.
 aaw*s.n.a.f.u.*
10-17-2003, 4:25 AM
#8
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 :)
Page: 1 of 1