Class UniversalRenderPipeline
Inheritance
UniversalRenderPipeline
Syntax
public sealed class UniversalRenderPipeline : RenderPipeline
Constructors
UniversalRenderPipeline(UniversalRenderPipelineAsset)
Declaration
public UniversalRenderPipeline(UniversalRenderPipelineAsset asset)
Parameters
Fields
k_ShaderTagName
Declaration
public const string k_ShaderTagName = null
Field Value
Properties
asset
Returns the current render pipeline asset for the current quality setting.
If no render pipeline asset is assigned in QualitySettings, then returns the one assigned in GraphicsSettings.
Declaration
public static UniversalRenderPipelineAsset asset { get; }
Property Value
maxPerObjectLights
Declaration
public static int maxPerObjectLights { get; }
Property Value
maxRenderScale
Declaration
public static float maxRenderScale { get; }
Property Value
maxShadowBias
Declaration
public static float maxShadowBias { get; }
Property Value
maxVisibleAdditionalLights
Declaration
public static int maxVisibleAdditionalLights { get; }
Property Value
minRenderScale
Declaration
public static float minRenderScale { get; }
Property Value
Methods
Dispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
| Type |
Name |
Description |
| Boolean |
disposing |
|
GetLightAttenuationAndSpotDirection(LightType, Single, Matrix4x4, Single, Nullable<Single>, out Vector4, out Vector4)
Declaration
public static void GetLightAttenuationAndSpotDirection(LightType lightType, float lightRange, Matrix4x4 lightLocalToWorldMatrix, float spotAngle, float? innerSpotAngle, out Vector4 lightAttenuation, out Vector4 lightSpotDir)
Parameters
| Type |
Name |
Description |
| LightType |
lightType |
|
| Single |
lightRange |
|
| Matrix4x4 |
lightLocalToWorldMatrix |
|
| Single |
spotAngle |
|
| Nullable<Single> |
innerSpotAngle |
|
| Vector4 |
lightAttenuation |
|
| Vector4 |
lightSpotDir |
|
InitializeLightConstants_Common(NativeArray<VisibleLight>, Int32, out Vector4, out Vector4, out Vector4, out Vector4, out Vector4)
Declaration
public static void InitializeLightConstants_Common(NativeArray<VisibleLight> lights, int lightIndex, out Vector4 lightPos, out Vector4 lightColor, out Vector4 lightAttenuation, out Vector4 lightSpotDir, out Vector4 lightOcclusionProbeChannel)
Parameters
| Type |
Name |
Description |
| NativeArray<VisibleLight> |
lights |
|
| Int32 |
lightIndex |
|
| Vector4 |
lightPos |
|
| Vector4 |
lightColor |
|
| Vector4 |
lightAttenuation |
|
| Vector4 |
lightSpotDir |
|
| Vector4 |
lightOcclusionProbeChannel |
|
IsGameCamera(Camera)
Checks if a camera is a game camera.
Declaration
public static bool IsGameCamera(Camera camera)
Parameters
| Type |
Name |
Description |
| Camera |
camera |
Camera to check state from.
|
Returns
| Type |
Description |
| Boolean |
true if given camera is a game camera, false otherwise.
|
IsStereoEnabled(Camera)
Checks if a camera is rendering in stereo mode.
Declaration
public static bool IsStereoEnabled(Camera camera)
Parameters
| Type |
Name |
Description |
| Camera |
camera |
Camera to check state from.
|
Returns
| Type |
Description |
| Boolean |
Returns true if the given camera is rendering in stereo mode, false otherwise.
|
Render(ScriptableRenderContext, Camera[])
Declaration
protected override void Render(ScriptableRenderContext renderContext, Camera[] cameras)
Parameters
| Type |
Name |
Description |
| ScriptableRenderContext |
renderContext |
|
| Camera[] |
cameras |
|
RenderSingleCamera(ScriptableRenderContext, Camera)
Standalone camera rendering. Use this to render procedural cameras.
This method doesn't call BeginCameraRendering and EndCameraRendering callbacks.
Declaration
public static void RenderSingleCamera(ScriptableRenderContext context, Camera camera)
Parameters
| Type |
Name |
Description |
| ScriptableRenderContext |
context |
Render context used to record commands during execution.
|
| Camera |
camera |
Camera to render.
|