Class TX3DRendererShape
Unit
CastleRenderer
Declaration
type TX3DRendererShape = class(TShape)
Description
Shape that can be rendered.
Hierarchy
Overview
Fields
Description
Fields
 |
ProgramCache: array [TRenderingPass] of TShaderProgramCache; |
Non-nil means that we have obtained TShaderProgramCache instance, with valid Hash and ShaderProgram. Note that ShaderProgram may still be Nil , if it failed to link.
Separate values for each rendering pass, since different rendering passes probably have different BaseLights and so will require different shaders. This makes multi-pass rendering, like for shadow volumes, play nicely with shaders. Otherwise we could recreate shaders at each rendering pass.
|
 |
ModelView: TMatrix4Single; |
Assign this each time before passing this shape to RenderShape.
|
|