Table of Contents

Class DepthMapProperties

Namespace
Gamelogic.Fx.Mapping.Maps
Assembly
Gamelogic.Fx.dll

Properties for rendering a depth map. See ../common/docs/map-renderers-reference-common.html#depth-map.

[Serializable]
public sealed class DepthMapProperties : MapProperties
Inheritance
DepthMapProperties
Inherited Members

Properties

BackgroundColor

The color used to clear the render texture before any rendering takes place.

public override Color BackgroundColor { get; }

Property Value

Color

Encoding

The depth encoding.

public DepthMapProperties.DepthEncoding Encoding { get; }

Property Value

DepthMapProperties.DepthEncoding

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 material)

Parameters

material Material

The material created for the post process effect, using the shader defined by ShaderName.

Remarks

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