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.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961