Skip to content

TextStudio2DNormalDetailSpec

StructTextStudioTextStudio
public struct TextStudio2DNormalDetailSpec

Optional glyph-local surface detail. A missing texture or zero strength preserves the original response.

TextStudio2DNormalDetailSpec(Texture2D, float, TextStudio2DNormalMapEncoding, Vector2?, Vector2, float)

Section titled “TextStudio2DNormalDetailSpec(Texture2D, float, TextStudio2DNormalMapEncoding, Vector2?, Vector2, float)”
public TextStudio2DNormalDetailSpec(Texture2D texture, float strength = 1, TextStudio2DNormalMapEncoding encoding = TextStudio2DNormalMapEncoding.LinearRgb, Vector2? scale = null, Vector2 offset = null, float angle = 0)

Creates detail with explicit source encoding and glyph-local mapping.

Parameters

Name Type
texture UnityEngine.Texture2D
strength System.Single
encoding TextStudio.TextStudio2DNormalMapEncoding
scale System.Nullable{UnityEngine.Vector2}
offset UnityEngine.Vector2
angle System.Single

public Texture2D Texture { get; }

Returns

UnityEngine.Texture2D

public TextStudio2DNormalMapEncoding Encoding { get; }

Returns

TextStudio.TextStudio2DNormalMapEncoding

public float Strength { get; }

Returns

System.Single

public Vector2 Scale { get; }

Returns

UnityEngine.Vector2

public Vector2 Offset { get; }

Returns

UnityEngine.Vector2

public float Angle { get; }

Returns

System.Single

public bool IsEnabled { get; }

Returns

System.Boolean