Class DrawObjectsPass
Draw objects into the given color and depth target
You can use this pass to render objects that have a material and/or shader with the pass names UniversalForward or SRPDefaultUnlit.
Implements
Inherited Members
Namespace: UnityEngine .Rendering.Universal.Internal
Assembly: Unity.RenderPipelines.Universal.Runtime.dll
Syntax
public class DrawObjectsPass : ScriptableRenderPass, IRenderGraphRecorder
Constructors
DrawObjectsPass(string, bool, RenderPassEvent, RenderQueueRange, LayerMask, StencilState, int)
Creates a new DrawObjectsPass
instance.
Declaration
public DrawObjectsPass(string profilerTag, bool opaque, RenderPassEvent evt, RenderQueueRange renderQueueRange, LayerMask layerMask, StencilState stencilState, int stencilReference)
Parameters
Type | Name | Description |
---|---|---|
string | profilerTag | The profiler tag used with the pass. |
bool | opaque | Marks whether the objects are opaque or transparent. |
Render |
evt | The |
Render |
renderQueueRange | The |
Layer |
layerMask | The layer mask to use for creating filtering settings that control what objects get rendered. |
Stencil |
stencilState | The stencil settings to use with this poss. |
int | stencilReference | The stencil reference value to use with this pass. |
See Also
DrawObjectsPass(string, ShaderTagId[], bool, RenderPassEvent, RenderQueueRange, LayerMask, StencilState, int)
Creates a new DrawObjectsPass
instance.
Declaration
public DrawObjectsPass(string profilerTag, ShaderTagId[] shaderTagIds, bool opaque, RenderPassEvent evt, RenderQueueRange renderQueueRange, LayerMask layerMask, StencilState stencilState, int stencilReference)
Parameters
Type | Name | Description |
---|---|---|
string | profilerTag | The profiler tag used with the pass. |
Shader |
shaderTagIds | |
bool | opaque | Marks whether the objects are opaque or transparent. |
Render |
evt | The |
Render |
renderQueueRange | The |
Layer |
layerMask | The layer mask to use for creating filtering settings that control what objects get rendered. |
Stencil |
stencilState | The stencil settings to use with this poss. |
int | stencilReference | The stencil reference value to use with this pass. |
See Also
Fields
m_IsActiveTargetBackBuffer
Used to indicate if the active target of the pass is the back buffer
Declaration
public bool m_IsActiveTargetBackBuffer
Field Value
Type | Description |
---|---|
bool |
m_ShouldTransparentsReceiveShadows
Used to indicate whether transparent objects should receive shadows or not.
Declaration
public bool m_ShouldTransparentsReceiveShadows
Field Value
Type | Description |
---|---|
bool |