Class ShadowmapBase
Inheritance
System.Object
ShadowmapBase
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Syntax
public abstract class ShadowmapBase
Constructors
ShadowmapBase(ref ShadowmapBase.BaseInit)
Declaration
protected ShadowmapBase(ref ShadowmapBase.BaseInit initializer)
Parameters
Fields
m_ClearColor
Declaration
protected readonly Vector4 m_ClearColor
Field Value
m_CompSamplerState
Declaration
protected readonly ComparisonSamplerState m_CompSamplerState
Field Value
m_CullResults
Declaration
protected CullResults m_CullResults
Field Value
Type |
Description |
CullResults |
|
m_Height
Declaration
protected readonly uint m_Height
Field Value
Type |
Description |
System.UInt32 |
|
m_HeightRcp
Declaration
protected readonly float m_HeightRcp
Field Value
Type |
Description |
System.Single |
|
m_MaxPayloadCount
Declaration
protected readonly uint m_MaxPayloadCount
Field Value
Type |
Description |
System.UInt32 |
|
m_SamplerState
Declaration
protected readonly SamplerState m_SamplerState
Field Value
m_ShadowmapBits
Declaration
protected readonly uint m_ShadowmapBits
Field Value
Type |
Description |
System.UInt32 |
|
Declaration
protected readonly RenderTextureFormat m_ShadowmapFormat
Field Value
Type |
Description |
RenderTextureFormat |
|
m_ShadowSupport
Declaration
protected readonly ShadowmapBase.ShadowSupport m_ShadowSupport
Field Value
m_Slices
Declaration
protected readonly uint m_Slices
Field Value
Type |
Description |
System.UInt32 |
|
m_Width
Declaration
protected readonly uint m_Width
Field Value
Type |
Description |
System.UInt32 |
|
m_WidthRcp
Declaration
protected readonly float m_WidthRcp
Field Value
Type |
Description |
System.Single |
|
Properties
height
Declaration
public uint height { get; }
Property Value
Type |
Description |
System.UInt32 |
|
slices
Declaration
public uint slices { get; }
Property Value
Type |
Description |
System.UInt32 |
|
width
Declaration
public uint width { get; }
Property Value
Type |
Description |
System.UInt32 |
|
Methods
Assign(CullResults)
Declaration
public void Assign(CullResults cullResults)
Parameters
Type |
Name |
Description |
CullResults |
cullResults |
|
CreateShadowmap()
Declaration
public abstract void CreateShadowmap()
DisplayShadowMap(CommandBuffer, Material, Vector4, UInt32, Single, Single, Single, Single, Single, Single)
Declaration
public abstract void DisplayShadowMap(CommandBuffer cmd, Material debugMaterial, Vector4 scaleBias, uint slice, float screenX, float screenY, float screenSizeX, float screenSizeY, float minValue, float maxValue)
Parameters
Type |
Name |
Description |
CommandBuffer |
cmd |
|
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 |
|
Fill(ShadowContextStorage)
Declaration
public abstract void Fill(ShadowContextStorage cs)
Parameters
GetMaxPayload()
Declaration
public uint GetMaxPayload()
Returns
Type |
Description |
System.UInt32 |
|
IsNativeDepth()
Declaration
protected bool IsNativeDepth()
Returns
Type |
Description |
System.Boolean |
|
QueryShadowSupport()
Declaration
public ShadowmapBase.ShadowSupport QueryShadowSupport()
Returns
Register(GPUShadowType, ShadowRegistry)
Declaration
protected abstract void Register(GPUShadowType type, ShadowRegistry registry)
Parameters
Register(ShadowRegistry)
Declaration
public void Register(ShadowRegistry registry)
Parameters
Reserve(FrameId, Camera, Boolean, ref ShadowData, ShadowmapBase.ShadowRequest, UInt32, UInt32, ref VectorArray<ShadowData>, ref VectorArray<ShadowPayload>, List<VisibleLight>)
Declaration
public abstract bool Reserve(FrameId frameId, Camera camera, bool cameraRelativeRendering, ref ShadowData shadowData, ShadowmapBase.ShadowRequest sr, uint width, uint height, ref VectorArray<ShadowData> entries, ref VectorArray<ShadowPayload> payloads, List<VisibleLight> lights)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Reserve(FrameId, Camera, Boolean, ref ShadowData, ShadowmapBase.ShadowRequest, UInt32[], UInt32[], ref VectorArray<ShadowData>, ref VectorArray<ShadowPayload>, List<VisibleLight>)
Declaration
public abstract bool Reserve(FrameId frameId, Camera camera, bool cameraRelativeRendering, ref ShadowData shadowData, ShadowmapBase.ShadowRequest sr, uint[] widths, uint[] heights, ref VectorArray<ShadowData> entries, ref VectorArray<ShadowPayload> payloads, List<VisibleLight> lights)
Parameters
Returns
Type |
Description |
System.Boolean |
|
ReserveFinalize(FrameId, ref VectorArray<ShadowData>, ref VectorArray<ShadowPayload>)
Declaration
public abstract bool ReserveFinalize(FrameId frameId, ref VectorArray<ShadowData> entries, ref VectorArray<ShadowPayload> payloads)
Parameters
Returns
Type |
Description |
System.Boolean |
|
ReserveSlots(ShadowContextStorage)
Declaration
public abstract void ReserveSlots(ShadowContextStorage sc)
Parameters
Update(FrameId, ScriptableRenderContext, CommandBuffer, CullResults, List<VisibleLight>)
Declaration
public abstract void Update(FrameId frameId, ScriptableRenderContext renderContext, CommandBuffer cmd, CullResults cullResults, List<VisibleLight> lights)
Parameters
Type |
Name |
Description |
FrameId |
frameId |
|
ScriptableRenderContext |
renderContext |
|
CommandBuffer |
cmd |
|
CullResults |
cullResults |
|
System.Collections.Generic.List<VisibleLight> |
lights |
|
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.