git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3217 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
c66ff953b5
commit
d62acc7608
1 changed files with 29 additions and 0 deletions
29
specs/example.shader
Normal file
29
specs/example.shader
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
//this file describes fte's extensions to the q3 shader syntax
|
||||||
|
//it can be used directly as a shader file.
|
||||||
|
|
||||||
|
|
||||||
|
//lets put some glsl on the console (Set gl_console to 'console')
|
||||||
|
//note that the _glsl postfix is only used if the user has a gfx card that supports glsl.
|
||||||
|
console_glsl
|
||||||
|
{
|
||||||
|
nopicmip
|
||||||
|
nomipmaps
|
||||||
|
|
||||||
|
program shaders/generic.vp shaders/console.fp
|
||||||
|
param texture 0 baset //tell it which samplers it can use
|
||||||
|
param time time //tell it the time
|
||||||
|
//param cvarf gl_specularexponant specexponant //example of feeding in the value of a cvar
|
||||||
|
//param upper topcol //could be used on entities to read the (player's) shirt colour into a topcol uniform
|
||||||
|
//param lower botcol //could be used on entities to read the (player's) lower colour into a botcol uniform
|
||||||
|
//param eyepos vieworg //put the render origin into uniform named vieworg
|
||||||
|
//param colors colourmod //reads the ent's colourmod and puts it in the colourmod uniform
|
||||||
|
|
||||||
|
{
|
||||||
|
map "conback"
|
||||||
|
//videomap "video/intro.roq" //use this line instead in order to feed a roq/avi into the glsl/shader
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//gl_shadeq1 can be used to allow shaders on q1 bsps/mdls
|
||||||
|
//gl_shadeq2 for q2 content
|
||||||
|
//gl_shadeq3 (default enabled) allows shaders on md3s and q3bsp
|
Loading…
Reference in a new issue