Mojo3d renderer
Class Renderer#
The mojo3d Renderer class.
A renderer is an object that renders scenes. There is normally only ever one renderer created and it is created for you automatically when required so you don't normally need to worry about renderers at all.
When a new renderer is created, the config setting MOJO3D\_RENDERER
can be used to control the type of renderer created. Use "deferred" to create a deferred renderer and "foward" to create a forward renderer. See SetConfig for more information about config settings. By default, a deferred renderer is created for desktop and web targets and a forward renderer for mobile targets.
Constructors | |
---|---|
New | Creates a new renderer. |
Properties | |
---|---|
CSMTextureSize | Size of the cascaded shadow map texture. |
Deferred | True if renderer is using deferred rendering. (read only) |
PSMTextureSize | Size of the cube texture used for point light shadow mapping. |
ShaderDefs | (read only) |
Functions | |
---|---|
GetCurrent | Gets the current renderer. |