Class ShadowVariance
Inheritance
System.Object
ShadowVariance
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Syntax
public class ShadowVariance : ShadowAtlas, IDisposable
Constructors
ShadowVariance(ref ShadowAtlas.AtlasInit)
Declaration
public ShadowVariance(ref ShadowAtlas.AtlasInit init)
Parameters
ShadowVariance(ref ShadowAtlas.AtlasInit, Int32)
Declaration
public ShadowVariance(ref ShadowAtlas.AtlasInit init, int sampleCount)
Parameters
Fields
k_BlurKernelCount
Declaration
protected const int k_BlurKernelCount = 8
Field Value
| Type |
Description |
| System.Int32 |
|
k_BlurKernelDefSize
Declaration
protected const int k_BlurKernelDefSize = 2
Field Value
| Type |
Description |
| System.Int32 |
|
k_BlurKernelMaxSize
Declaration
protected const int k_BlurKernelMaxSize = 17
Field Value
| Type |
Description |
| System.Int32 |
|
k_BlurKernelMinSize
Declaration
protected const int k_BlurKernelMinSize = 3
Field Value
| Type |
Description |
| System.Int32 |
|
k_MaxSampleCount
Declaration
protected const int k_MaxSampleCount = 8
Field Value
| Type |
Description |
| System.Int32 |
|
k_MomentBlurThreadsPerWorkgroup
Declaration
protected const int k_MomentBlurThreadsPerWorkgroup = 16
Field Value
| Type |
Description |
| System.Int32 |
|
m_BlurWeights
Declaration
protected float[][] m_BlurWeights
Field Value
| Type |
Description |
| System.Single[][] |
|
m_Flags
Declaration
protected readonly ShadowVariance.Flags m_Flags
Field Value
m_KernelEVSM_2
Declaration
protected int[] m_KernelEVSM_2
Field Value
| Type |
Description |
| System.Int32[] |
|
m_KernelEVSM_4
Declaration
protected int[] m_KernelEVSM_4
Field Value
| Type |
Description |
| System.Int32[] |
|
m_KernelMSM
Declaration
protected int[] m_KernelMSM
Field Value
| Type |
Description |
| System.Int32[] |
|
m_KernelVSM
Declaration
protected int[] m_KernelVSM
Field Value
| Type |
Description |
| System.Int32[] |
|
m_MomentBlurCS
Declaration
protected ComputeShader m_MomentBlurCS
Field Value
| Type |
Description |
| ComputeShader |
|
m_SampleCount
Declaration
protected int m_SampleCount
Field Value
| Type |
Description |
| System.Int32 |
|
Methods
CheckDataIntegrity(ShadowAlgorithm, ShadowVariant, ShadowPrecision, ref Int32[])
Declaration
protected override bool CheckDataIntegrity(ShadowAlgorithm algorithm, ShadowVariant variant, ShadowPrecision precision, ref int[] dataBlock)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
Overrides
CreateShadowmap(RenderTexture)
Declaration
protected override void CreateShadowmap(RenderTexture shadowmap)
Parameters
| Type |
Name |
Description |
| RenderTexture |
shadowmap |
|
Overrides
DisplayShadowMap(CommandBuffer, Material, Vector4, UInt32, Single, Single, Single, Single, Single, Single, Boolean)
Declaration
public override void DisplayShadowMap(CommandBuffer debugCB, Material debugMaterial, Vector4 scaleBias, uint slice, float screenX, float screenY, float screenSizeX, float screenSizeY, float minValue, float maxValue, bool flipY)
Parameters
| Type |
Name |
Description |
| CommandBuffer |
debugCB |
|
| Material |
debugMaterial |
|
| Vector4 |
scaleBias |
|
| System.UInt32 |
slice |
|
| System.Single |
screenX |
|
| System.Single |
screenY |
|
| System.Single |
screenSizeX |
|
| System.Single |
screenSizeY |
|
| System.Single |
minValue |
|
| System.Single |
maxValue |
|
| System.Boolean |
flipY |
|
Overrides
ShadowAtlas.DisplayShadowMap(CommandBuffer, Material, Vector4, UInt32, Single, Single, Single, Single, Single, Single, Boolean)
GetFilterWidthInTexels(ShadowmapBase.ShadowRequest, AdditionalShadowData)
Declaration
protected override float GetFilterWidthInTexels(ShadowmapBase.ShadowRequest sr, AdditionalShadowData asd)
Parameters
Returns
| Type |
Description |
| System.Single |
|
Overrides
Declaration
public static RenderTextureFormat GetFormat(bool use_16_BitsPerChannel, bool use_2_Channels, bool use_MSM)
Parameters
| Type |
Name |
Description |
| System.Boolean |
use_16_BitsPerChannel |
|
| System.Boolean |
use_2_Channels |
|
| System.Boolean |
use_MSM |
|
Returns
| Type |
Description |
| RenderTextureFormat |
|
PostUpdate(FrameId, CommandBuffer, UInt32, List<VisibleLight>)
Declaration
protected override void PostUpdate(FrameId frameId, CommandBuffer cb, uint rendertargetSlice, List<VisibleLight> lights)
Parameters
| Type |
Name |
Description |
| FrameId |
frameId |
|
| CommandBuffer |
cb |
|
| System.UInt32 |
rendertargetSlice |
|
| List<VisibleLight> |
lights |
|
Overrides
PreUpdate(FrameId, CommandBuffer, UInt32)
Declaration
protected override void PreUpdate(FrameId frameId, CommandBuffer cb, uint rendertargetSlice)
Parameters
| Type |
Name |
Description |
| FrameId |
frameId |
|
| CommandBuffer |
cb |
|
| System.UInt32 |
rendertargetSlice |
|
Overrides
Register(GPUShadowType, ShadowRegistry)
Declaration
protected override void Register(GPUShadowType type, ShadowRegistry registry)
Parameters
Overrides
ReservePayload(ShadowmapBase.ShadowRequest)
Declaration
protected override uint ReservePayload(ShadowmapBase.ShadowRequest sr)
Parameters
Returns
| Type |
Description |
| System.UInt32 |
|
Overrides
WritePerLightPayload(List<VisibleLight>, ShadowmapBase.ShadowRequest, ref ShadowData, ref VectorArray<ShadowPayload>, ref UInt32)
Declaration
protected override void WritePerLightPayload(List<VisibleLight> lights, ShadowmapBase.ShadowRequest sr, ref ShadowData sd, ref VectorArray<ShadowPayload> payload, ref uint payloadOffset)
Parameters
Overrides