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
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.