Version: 2017.3
Experimental: this API is experimental and might be changed or removed in the future.

RenderStateBlock

struct in UnityEngine.Experimental.Rendering

매뉴얼로 전환

설명

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.

변수

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.

생성자

RenderStateBlockCreates a new render state block with the specified mask.