Table of Contents

Class ViewportEffectConfiguration

Namespace
Bonsai.Shaders.Configuration
Assembly
Bonsai.Shaders.dll

Provides configuration and loading functionality for viewport effect shader programs.

public class ViewportEffectConfiguration : ShaderConfiguration, IResourceConfiguration
Inheritance
ViewportEffectConfiguration
Implements
Inherited Members

Properties

FragmentShader

Gets or sets the path to the fragment shader file.

[FileNameFilter("Fragment Shader Files (*.frag)|*.frag|All Files (*.*)|*.*")]
public string FragmentShader { get; set; }

Property Value

string

QuadEffects

Gets or sets a value specifying quad geometry transformation effects.

public QuadEffects QuadEffects { get; set; }

Property Value

QuadEffects

Methods

CreateResource(ResourceManager)

Creates a new viewport effect shader resource.

public override Shader CreateResource(ResourceManager resourceManager)

Parameters

resourceManager ResourceManager

The ResourceManager object onto which this resource will be loaded. The resource manager can be accessed to load additional resource dependencies which may be required to create the new resource.

Returns

Shader

A new instance of the Shader class representing the compiled viewport effect shader.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.