RTSS Core Components Overview
masterThe RTSS (Runtime Shader System) consists of several key components:
- ShaderGenerator: The primary interface for requesting shader generation, controlling shading languages, and managing shader caching.
- RenderState: The core component that aggregates SubRenderStates to form a shader. It exists at two levels:
SGScheme(for a material scheme) andSGPass(for a specific pass). - SubRenderState (SRS): Isolated components that implement specific effects (e.g.,
SRS_TRANSFORM,SRS_TEXTURING,SRS_FOG). Combining these creates the final shader logic. - SubRenderStateFactory: Factories that produce specific
SubRenderStatesand can act as script readers/writers for specialized SRSs.