Experimental: this API is experimental and might be changed or removed in the future.
RenderStateBlock
struct in
UnityEngine.Experimental.Rendering
/
Implemented in:UnityEngine.CoreModule
Suggest a changeSuccess!
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
CloseSubmission failed
For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
Close Description
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.
Properties
blendState | Specifies the new blend state. |
depthState | Specifies the new depth state. |
mask | Specifies which parts of the render state that is overriden. |
rasterState | Specifies the new raster state. |
stencilReference | The value to be compared against and/or the value to be written to the buffer based on the stencil state. |
stencilState | Specifies the new stencil state. |