Class NormalMapProperties
Properties for rendering a normal map. See ../common/docs/map-renderers-reference-common.html#normal-map.
[Serializable]
public sealed class NormalMapProperties : MapProperties
- Inheritance
-
NormalMapProperties
- Inherited Members
Properties
BackgroundColor
The color used to clear the render texture before any rendering takes place.
public override Color BackgroundColor { get; }
Property Value
Encoding
The encoding used for the normal map.
public NormalMapProperties.NormalEncoding Encoding { get; }
Property Value
ShaderName
Gets the name of the shader used by this property set.
public override string ShaderName { get; }
Property Value
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
materialMaterialThe 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).