Table of Contents

Class BlendTextureProperties

Namespace
Gamelogic.Fx.PostProcessing.Effects
Assembly
Gamelogic.Fx.dll

Shader properties for the blend-texture post-processing effect.

[Serializable]
public sealed class BlendTextureProperties : ShaderProperties
Inheritance
BlendTextureProperties
Inherited Members

Properties

Opacity

Overall opacity of the blended texture in the range [0, 1].

public float Opacity { get; set; }

Property Value

float

OverlayTexture

The texture to blend over the scene.

public Texture OverlayTexture { get; set; }

Property Value

Texture

OverlayTextureTilingOffset

The tiling offset of the overlay texture.

public Vector2 OverlayTextureTilingOffset { get; set; }

Property Value

Vector2

OverlayTextureTilingScale

The tiling scale of the overlay texture.

public Vector2 OverlayTextureTilingScale { get; set; }

Property Value

Vector2

ShaderName

Gets the name of the shader used by this property set.

public override string ShaderName { get; }

Property Value

string

Remarks

This name is passed to the internal shader lookup system when the properties are enabled. It should match the full shader path as defined in the shader file.

Methods

SetMaterialProperties(Material)

Applies all shader-related properties to the given material.

public override void SetMaterialProperties(Material effectMaterial)

Parameters

effectMaterial Material

Remarks

Subclasses should override this method and set all relevant shader uniforms (for example, floats, vectors, colors, textures, and keywords).