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.
Inherited Members
Namespace: UnityEngine.Rendering.Universal.Internal
Assembly: Unity.RenderPipelines.Universal.Runtime.dll
Syntax
public class DrawObjectsPass : ScriptableRenderPass
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. |
RenderPassEvent | evt | The |
RenderQueueRange | renderQueueRange | The |
LayerMask | layerMask | The layer mask to use for creating filtering settings that control what objects get rendered. |
StencilState | 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. |
ShaderTagId[] | shaderTagIds | |
bool | opaque | Marks whether the objects are opaque or transparent. |
RenderPassEvent | evt | The |
RenderQueueRange | renderQueueRange | The |
LayerMask | layerMask | The layer mask to use for creating filtering settings that control what objects get rendered. |
StencilState | stencilState | The stencil settings to use with this poss. |
int | stencilReference | The stencil reference value to use with this pass. |
See Also
Fields
m_ProfilingSampler
Profiling sampler
Declaration
protected ProfilingSampler m_ProfilingSampler
Field Value
Type | Description |
---|---|
ProfilingSampler |
m_ShouldTransparentsReceiveShadows
Used to indicate whether transparent objects should receive shadows or not.
Declaration
public bool m_ShouldTransparentsReceiveShadows
Field Value
Type | Description |
---|---|
bool |
Methods
Execute(ScriptableRenderContext, ref RenderingData)
Execute the pass. This is where custom rendering occurs. Specific details are left to the implementation
Declaration
public override void Execute(ScriptableRenderContext context, ref RenderingData renderingData)
Parameters
Type | Name | Description |
---|---|---|
ScriptableRenderContext | context | Use this render context to issue any draw commands during execution |
RenderingData | renderingData | Current rendering state information |