DarkRadiant shader system

From The DarkMod Wiki
Revision as of 16:45, 7 February 2007 by Greebo (talk | contribs)
Jump to navigationJump to search

shadersystemzh6.th.jpg

The DarkRadiant shader system module is initialised during DarkRadiant startup and parses the material files during this phase.

It consists of several vital components:

  • The ShaderLibrary which holds all the named ShaderDefinitions and named Shader objects.
  • The GLTextureManager, responsible for "realising" the actual Texture objects (this includes image post-processing like gamma-adjustment and resampling).
  • The actual Shader objects.

The Shader and Texture objects are allocated on the heap using boost::shared_ptrs.