Table of Contents

Class Outline

Namespace
Stride.Rendering.Images
Assembly
Stride.Rendering.dll

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 string

Name of the outline shader.

Properties

DepthWeight

[DataMember(20)]
public float DepthWeight { get; set; }

Property Value

float

NormalNearCutoff

[DataMember(30)]
public float NormalNearCutoff { get; set; }

Property Value

float

NormalWeight

[DataMember(10)]
public float NormalWeight { get; set; }

Property Value

float

Methods

DrawCore(RenderDrawContext)

Main drawing method for this renderer that must be implemented.

protected override void DrawCore(RenderDrawContext context)

Parameters

context RenderDrawContext

The 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 Texture

A color buffer to process.

depthBuffer Texture

The depth buffer corresponding to the color buffer provided.

zMin float
zMax float

SetDefaultParameters()

Sets the default parameters (called at constructor time and if Reset() is called)

protected override void SetDefaultParameters()