Unity - Scripting API: RenderStateBlock
struct in UnityEngine.Rendering
/
Implemented in:UnityEngine.CoreModule
Success!
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.
Submission 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.
Description
A set of values that Unity uses to override the GPU's render state.
Properties
| blendState | Specifies the new blend state. |
| depthState | Specifies the new depth state. |
| mask | Specifies which parts of the GPU's render state to override. |
| 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. |