Mapping:What is a shader

From Custom Map Makers Wiki
Revision as of 10:45, 27 August 2011 by John (talk | contribs) (Created page with "A Shader is a collection of properties that controls how a surface is treated by the compilers, and how the surface is rendered by the Quake 3 engine. Every Surface has a default...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

A Shader is a collection of properties that controls how a surface is treated by the compilers, and how the surface is rendered by the Quake 3 engine. Every Surface has a default set of Shader properties, unless an external shader script is specified.

Combinations of a number of pre-defined properties control the way the compiler treats the surface.

See the Shader Manual for more information.

"SurfaceParm" is the shader keyword for universal shader properties.

SurfaceParms are either Brush "Content" Properties or Brush "Surface" Properties.

A Content Property applies to the contents of an entire Brush if the first face of the brush (face 0) has that property.

Because of this, identical Content Properties should be applied to all faces of a brush to avoid unpredictable results.

A Surface Property applies only to the surface with that property.