RaptorShaderResolution
One slot's resolved shader and where it came from.
| Namespace | Assembly | Kind | Stability |
|---|---|---|---|
Raptor.EditorTools | Raptor.Editor | struct | preview, since 0.1.0 |
public readonly struct RaptorShaderResolutionConstructors
RaptorShaderResolution
public RaptorShaderResolution(RaptorShaderSlot slot, Shader shader, RaptorShaderSource source)Creates a resolution.
| Parameter | Type | Description |
|---|---|---|
slot | RaptorShaderSlot | The slot asked for. |
shader | Shader | The shader, or null. |
source | RaptorShaderSource | The step that found it. |
Fields
Shader
public readonly Shader Shader;The shader to use, or null when Source is RaptorShaderSource.None.
Slot
public readonly RaptorShaderSlot Slot;The slot asked for.
Source
public readonly RaptorShaderSource Source;The step that found Shader.
Properties
AlphaClip
public bool AlphaClip { get; }Whether the slot is alpha-tested (Cutout).
IsFallback
public bool IsFallback { get; }Whether the slot fell back to URP/Lit. When true, the caller must set the surface state the slot needs (Transparent, AlphaClip) on the material.
Transparent
public bool Transparent { get; }Whether the slot is alpha-blended (Glass).
Related types
- RaptorShaderSource: How RaptorShaderProfile found a slot's shader.
- RaptorShaderSlot: The shader slots RAPTOR generates materials for.