q3map_baseshader


(ratty redemption) #1

can a shader use more then one q3map_baseshader? eg…

textures/_ratty_terrain/grass
 qer_editorimage textures/_ratty_terrain/green_terrain.tga
 q3map_baseshader textures/_ratty_terrain/blend_base1
 q3map_baseshader textures/_ratty_terrain/blend_base2
 surfaceparm grasssteps
 {
  map textures/stone/mxrock0b.tga
 }
 {
  map $lightmap
  tcgen lightmap
  blendfunc filter
 }
}

the reason I ask is several of my base shaders I`m writing have similar lines in them, so I wondered if I could have one for surfaceparms, one for q3map_* keywords etc

also iirc, polygonoffset and surfaceparm grasssteps don`t work in base shaders and have to be after a q3map_baseshader line but still in the top stage of a shader?

if this is the case, are there any other commonly used keywords that don`t work in the base shaders?


(ratty redemption) #2

I`ve just done some tests on my previous questions…

if we have more then one q3map_baseshader keyword in any one shader, then the lowest q3map_baseshader in the list will override the others, in the same shader.

and Ill update the keywords that dont work in the base shaders as I find them.

so far these are the ones Ive found definitely dont work for me in rtcw.

polygonoffset
cull disable
qer_trans


(obsidian) #3

Only q3map_* directives work for q3map_baseShader. Surfaceparm, general, qer_, stage specific directives do not.