Outline Class
Namespace: Stride.Rendering.ImagesAssembly: Stride.Rendering.dll
A fog filter.
System.Object → DisposeBase → ComponentBase → RendererCoreBase → RendererBase → DrawEffect → ImageEffect →
Outline
Derived from Outline:
[DataContract("Outline")]
public class Outline : ImageEffect, IComponent, IReferencable, ICollectorHolder, IImageEffect, IGraphicsRenderer, IGraphicsRendererBase, IGraphicsRendererCore, IDisposable
Name | Description | |
---|---|---|
Constructors | ||
Outline() | Initializes a new instance of the Outline class. |
|
Outline(String) | Initializes a new instance of the Outline class. |
|
Properties | ||
DepthWeight | ||
NormalNearCutoff | ||
NormalWeight | ||
Methods | ||
DrawCore(RenderDrawContext) | ||
InitializeCore() | ||
SetColorDepthInput(Texture, Texture, Single, Single) | Provides a color buffer and a depth buffer to apply the fog to. |
|
SetDefaultParameters() |
Constructors
Outline()
Initializes a new instance of the Outline class.
public Outline()
Outline(String)
Initializes a new instance of the Outline class.
public Outline(string shaderName)
Parameters
Type | Name | Description |
---|---|---|
System.String | shaderName | Name of the outline shader. |
Properties
DepthWeight
[DataMember(20)]
public float DepthWeight { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
NormalNearCutoff
[DataMember(30)]
public float NormalNearCutoff { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
NormalWeight
[DataMember(10)]
public float NormalWeight { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Methods
DrawCore(RenderDrawContext)
protected override void DrawCore(RenderDrawContext context)
Parameters
Type | Name | Description |
---|---|---|
RenderDrawContext | context |
Overrides
InitializeCore()
protected override void InitializeCore()
Overrides
SetColorDepthInput(Texture, Texture, Single, Single)
Provides a color buffer and a depth buffer to apply the fog to.
public void SetColorDepthInput(Texture colorBuffer, Texture depthBuffer, float zMin, float zMax)
Parameters
Type | Name | Description |
---|---|---|
Texture | colorBuffer | A color buffer to process. |
Texture | depthBuffer | The depth buffer corresponding to the color buffer provided. |
System.Single | zMin | |
System.Single | zMax |
SetDefaultParameters()
protected override void SetDefaultParameters()