TextStudio2DMaterialResponseSpec
public struct TextStudio2DMaterialResponseSpecCompact physically inspired surface response. Presets provide finished defaults while the fluent modifiers expose the professional lighting, material, and optical controls.
Constructors
Section titled “Constructors”
TextStudio2DMaterialResponseSpec(TextStudio2DMaterialResponseKind, float, float, float, float, float, float, float, float, float, float, float, float, int, Color, Color, Color)
Section titled “TextStudio2DMaterialResponseSpec(TextStudio2DMaterialResponseKind, float, float, float, float, float, float, float, float, float, float, float, float, int, Color, Color, Color)”public TextStudio2DMaterialResponseSpec(TextStudio2DMaterialResponseKind kind, float width, float softness, float depth, float lightAngle, float lightElevation, float roughness, float metallic, float clearcoat, float anisotropy, float iridescence, float sparkle, float emission, int seed, Color highlight, Color shadow, Color environment)Creates a material response with the supplied relief, lighting, surface, optical, color, and deterministic seed settings.
Parameters
| Name | Type |
|---|---|
kind |
TextStudio.TextStudio2DMaterialResponseKind |
width |
System.Single |
softness |
System.Single |
depth |
System.Single |
lightAngle |
System.Single |
lightElevation |
System.Single |
roughness |
System.Single |
metallic |
System.Single |
clearcoat |
System.Single |
anisotropy |
System.Single |
iridescence |
System.Single |
sparkle |
System.Single |
emission |
System.Single |
seed |
System.Int32 |
highlight |
UnityEngine.Color |
shadow |
UnityEngine.Color |
environment |
UnityEngine.Color |
Methods
Section titled “Methods”
Preset(TextStudio2DMaterialResponseKind)
Section titled “Preset(TextStudio2DMaterialResponseKind)”public static TextStudio2DMaterialResponseSpec Preset(TextStudio2DMaterialResponseKind kind)Returns polished, deterministic defaults for a professional material family.
Parameters
| Name | Type |
|---|---|
kind |
TextStudio.TextStudio2DMaterialResponseKind |
Returns
TextStudio.TextStudio2DMaterialResponseSpec
WithRelief(float, float, float)
Section titled “WithRelief(float, float, float)”public TextStudio2DMaterialResponseSpec WithRelief(float width, float softness, float depth)Returns a material response copy with the supplied relief width, softness, and depth.
Parameters
| Name | Type |
|---|---|
width |
System.Single |
softness |
System.Single |
depth |
System.Single |
Returns
TextStudio.TextStudio2DMaterialResponseSpec
WithLighting(float, float)
Section titled “WithLighting(float, float)”public TextStudio2DMaterialResponseSpec WithLighting(float angle, float elevation)Returns a material response copy with the supplied light angle and elevation.
Parameters
| Name | Type |
|---|---|
angle |
System.Single |
elevation |
System.Single |
Returns
TextStudio.TextStudio2DMaterialResponseSpec
WithSurface(float, float, float, float)
Section titled “WithSurface(float, float, float, float)”public TextStudio2DMaterialResponseSpec WithSurface(float roughness, float metallic, float clearcoat, float anisotropy = 0)Returns a material response copy with the supplied roughness, metallic, clearcoat, and anisotropy settings.
Parameters
| Name | Type |
|---|---|
roughness |
System.Single |
metallic |
System.Single |
clearcoat |
System.Single |
anisotropy |
System.Single |
Returns
TextStudio.TextStudio2DMaterialResponseSpec
WithOptics(float, float, float, int)
Section titled “WithOptics(float, float, float, int)”public TextStudio2DMaterialResponseSpec WithOptics(float iridescence, float sparkle, float emission, int seed)Returns a material response copy with the supplied iridescence, sparkle, emission, and deterministic seed settings.
Parameters
| Name | Type |
|---|---|
iridescence |
System.Single |
sparkle |
System.Single |
emission |
System.Single |
seed |
System.Int32 |
Returns
TextStudio.TextStudio2DMaterialResponseSpec
WithColors(Color, Color, Color)
Section titled “WithColors(Color, Color, Color)”public TextStudio2DMaterialResponseSpec WithColors(Color highlight, Color shadow, Color environment)Returns a material response copy with the supplied highlight, shadow, and environment colors.
Parameters
| Name | Type |
|---|---|
highlight |
UnityEngine.Color |
shadow |
UnityEngine.Color |
environment |
UnityEngine.Color |
Returns
TextStudio.TextStudio2DMaterialResponseSpec
Properties
Section titled “Properties”
public TextStudio2DMaterialResponseKind Kind { get; }Returns
TextStudio.TextStudio2DMaterialResponseKind
public float Width { get; }Returns
System.Single
Softness
Section titled “Softness”public float Softness { get; }Returns
System.Single
public float Depth { get; }Returns
System.Single
LightAngle
Section titled “LightAngle”public float LightAngle { get; }Returns
System.Single
LightElevation
Section titled “LightElevation”public float LightElevation { get; }Returns
System.Single
Roughness
Section titled “Roughness”public float Roughness { get; }Returns
System.Single
Metallic
Section titled “Metallic”public float Metallic { get; }Returns
System.Single
Clearcoat
Section titled “Clearcoat”public float Clearcoat { get; }Returns
System.Single
Anisotropy
Section titled “Anisotropy”public float Anisotropy { get; }Returns
System.Single
Iridescence
Section titled “Iridescence”public float Iridescence { get; }Returns
System.Single
Sparkle
Section titled “Sparkle”public float Sparkle { get; }Returns
System.Single
Emission
Section titled “Emission”public float Emission { get; }Returns
System.Single
public int Seed { get; }Returns
System.Int32
Highlight
Section titled “Highlight”public Color Highlight { get; }Returns
UnityEngine.Color
Shadow
Section titled “Shadow”public Color Shadow { get; }Returns
UnityEngine.Color
Environment
Section titled “Environment”public Color Environment { get; }Returns
UnityEngine.Color