View Full Version : making a shader
10-15-2003, 04:34 PM
how do i make a valid shader file i tried to figure it out for myself but failed
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.
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.
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
blendFunc GL_DST_COLOR GL_ZERO
blendFunc GL_ONE GL_ONE
10-16-2003, 07:22 PM
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.
10-16-2003, 07:56 PM
You can also type *.* the press enter, then yourname.shader and save.
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 :)
vBulletin®, Copyright ©2000-2014, Jelsoft Enterprises Ltd.