Class Outline
A fog filter.
[DataContract("Outline")]
public class Outline : ImageEffect, IComponent, IReferencable, ICollectorHolder, IImageEffect, IGraphicsRenderer, IGraphicsRendererBase, IGraphicsRendererCore, IDisposable
- Inheritance
-
Outline
- Implements
- Inherited Members
- Extension Methods
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
shaderName
stringName of the outline shader.
Properties
DepthWeight
[DataMember(20)]
public float DepthWeight { get; set; }
Property Value
NormalNearCutoff
[DataMember(30)]
public float NormalNearCutoff { get; set; }
Property Value
NormalWeight
[DataMember(10)]
public float NormalWeight { get; set; }
Property Value
Methods
DrawCore(RenderDrawContext)
Main drawing method for this renderer that must be implemented.
protected override void DrawCore(RenderDrawContext context)
Parameters
context
RenderDrawContextThe context.
InitializeCore()
protected override void InitializeCore()
SetColorDepthInput(Texture, Texture, float, float)
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
colorBuffer
TextureA color buffer to process.
depthBuffer
TextureThe depth buffer corresponding to the color buffer provided.
zMin
floatzMax
float
SetDefaultParameters()
Sets the default parameters (called at constructor time and if Reset() is called)
protected override void SetDefaultParameters()