Torque Shader EngineTorque Shader Engine Documentation
CVS Revision Label 0.1.x

Appendix B. Tips and Tricks

Table of Contents

Turning off procedural shader generation
Forcing a pixel shader class
Shader Compile Errors

Turning off procedural shader generation

The engine can be set so new shaders are not generated. The engine will load and compile whatever shaders were previously created. This is useful for debugging and modifying procedural shaders.

To turn off the generation of shaders, comment out the GEN_NEW_SHADERS preprocessor definition in shaderGen/shaderGen.cpp. Recompile and the next time it runs, the shaders will be read from disk only.