Class: rcmdshaders

Sets use of baseshaders

Hierarchy

o-+ renderinterface
  o-+ rcmd
    o-+ rcmdshaders

Methods:

new ()
returns: (rcmdshaders)
returns the rcmd
shaders (rcmdshaders,[shader color-only,shader color_lightmap,shader 1tex,shader 1tex_lightmap])
returns: ([shader color-only,shader color_lightmap,shader 1tex,shader 1tex_lightmap])
returns or sets baseshaders. Any non-material mesh, ie just having a texture or just having a color, will use those shaders and pass its texture (if exists) as Texture:0 to the shader.
shaderstage (rcmdshaders,[int 0-3])
returns: ([int])
returns or sets shaderstage of the material. A material can define up to 4 shaders, the id that you pass here will be used. If a material does not have a shader with the given id, we will use the color-only baseshader. Only active if usebaseshaders is true.

Inherited Methods:

From rcmd

flag