TINMAN 3D / REALTIME TERRAIN
Software Development Kit - User Manual

interface IRenderState in Tinman.AddOns.Rendering

Defines properties for modifying render state of a IShaderTechnique.

interface IRenderState base of IShaderTechnique

Remarks

Render state is always reset to the technique defaults when BeginPass is called. This means that modifying render state outside of BeginPass/EndPass will have no effect.

Methods

AlphaToCoverage

Manually enables or disables alpha-to-coverage, if supported.

method AlphaToCoverage (bool value)
type bool
params value true to enable alpha-to-coverage, false to disable it.
returns true if alpha-to-coverage has been enabled,
false in one of these cases:
  • The value parameter is false.
  • Alpha-to-coverage is not supported.
  • Alpha-to-coverage is supported but must be enabled in the shader effect source.

Remarks:

If a render API does not support setting the alpha-to-coverage state in the shader effect source, this method can be used to enable it from code.

See also:

IShaderTechnique.BeginPass

CullMode

The cull mode to use for rendering primitives.

method CullMode (int32 mode)
params mode The cull mode:
< 0: invert cull mode of technique.
> 0: keep cull mode of technique.
= 0: disable culling.

See also:

IShaderTechnique.BeginPass