RenderStateBlock

struct in UnityEngine.Rendering

Cambiar al Manual

Descripción

A set of values used to override the render state. Note that it is not enough to set e.g. blendState, but that mask must also include RenderStateMask.Blend for the override to occur.

Variables

blendStateSpecifies the new blend state.
depthStateSpecifies the new depth state.
maskSpecifies which parts of the render state that is overriden.
rasterStateSpecifies the new raster state.
stencilReferenceThe value to be compared against and/or the value to be written to the buffer based on the stencil state.
stencilStateSpecifies the new stencil state.

Constructores

RenderStateBlockCreates a new render state block with the specified mask.