Jump to content

JKA Shader Manual


Recommended Posts

Posted

The Q3 shader manual is the current resource we have for working with shaders.

So how about a shader manual that has some of the JKA specific keywords?

 

I will list the keywords here, and maybe someone can fill in the definitions?

Note that I am only pulling from the engine, q3map2_ or q3map_ definitions aren't included here (they're the same as in Q3)

 

  • map

$whiteimage $lightmap

  • clampmap
  • animMap
  • clampAnimMap
  • oneshotAnimMap
  • videoMap
  • alphaFunc

GT0 LT128 GE128 GE192

  • depthFunc

lequal equal disable

  • detail
  • blendFunc

add filter blend

GL_ONE GL_ZERO GL_DST_COLOR GL_ONE_MINUS_DST_COLOR GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA GL_DST_ALPHA GL_SRC_ALPHA_SATURATE

  • rgbGen

wave const identity identityLighting entity oneMinusEntity vertex exactVertex lightingDiffuse lightingDiffuseEntity oneMinusVertex

  • alphaGen

wave const identity entity oneMinusEntity vertex lightingSpecular oneMinusVertex dot oneMinusDot portal

  • texGen / tcGen

environment lightmap texture/base vector

  • tcMod

turb scale scroll stretch transform rotate entityTranslate

  • depthWrite
  • glow
  • surfaceSprites

vertical oriented effect flattened

  • ssFadeMax
  • ssFadeScale
  • ssVariance
  • ssHangDown
  • ssAnyAngle
  • ssFaceUp
  • ssWind
  • ssWindIdle
  • ssVertSkew
  • ssFXDuration
  • ssFXGrow
  • ssFXAlphaRange
  • ssFXWeather

ssFadeMax ssFadescale ssVariance ssHangDown ssAnyAngle ssFaceUp ssWind ssWindIdle ssDuration ssGrow ssWeather

Posted

Great idea! Shaders manual will definetly be useful. It wont be ctrl + c ctrl + v and hope to get proper results anymore. It would be nice to have all available commands along with descriptions in one place.

J19 and Bad Dancer like this

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...