Version: 2019.4

RenderStateBlock

struct in UnityEngine.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.