Class DecalRendererFeature
The class for the decal renderer feature.
Implements
Inherited Members
Namespace: UnityEngine.Rendering.Universal
Assembly: Unity.RenderPipelines.Universal.Runtime.dll
Syntax
[SupportedOnRenderer(typeof(UniversalRendererData))]
[DisallowMultipleRendererFeature("Decal")]
[Tooltip("With this Renderer Feature, Unity can project specific Materials (decals) onto other objects in the Scene.")]
public class DecalRendererFeature : ScriptableRendererFeature, IDisposable
Properties
useIntermediateTextures
Specifies the feature's dependency on an intermediate texture. Override this property to allow the renderer to optimize its setup by skipping the creation of render passes for features that are incompatible with the pipeline's Intermediate Texture setting.
Declaration
protected override ScriptableRendererFeature.IntermediateTextureUsage useIntermediateTextures { get; }
Property Value
Type | Description |
---|---|
ScriptableRendererFeature.IntermediateTextureUsage |
Overrides
Methods
AddRenderPasses(ScriptableRenderer, ref RenderingData)
Injects one or multiple ScriptableRenderPass
in the renderer.
Declaration
public override void AddRenderPasses(ScriptableRenderer renderer, ref RenderingData renderingData)
Parameters
Type | Name | Description |
---|---|---|
ScriptableRenderer | renderer | Renderer used for adding render passes. |
RenderingData | renderingData | Rendering state. Use this to setup render passes. |
Overrides
Create()
Initializes this feature's resources. This is called every time serialization happens.
Declaration
public override void Create()
Overrides
Dispose(bool)
Called by Dispose(). Override this function to clean up resources in your renderer.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing |
Overrides
OnCameraPreCull(ScriptableRenderer, in CameraData)
Callback before cull happens in renderer.
Declaration
public override void OnCameraPreCull(ScriptableRenderer renderer, in CameraData cameraData)
Parameters
Type | Name | Description |
---|---|---|
ScriptableRenderer | renderer | Renderer of callback. |
CameraData | cameraData | CameraData contains all relevant render target information for the camera. |