DefaultTextures
- Namespace: Turian.Engine.Core
- Source File: DefaultTextures.cs
1×1 fallback textures bound to material slots with no texture reference. The PBR shader multiplies each sample by the matching factor uniform, so these neutral values reduce a slot to its factor alone without branching in the shader.
Properties
White
(Texture) : White (255,255,255,255), sRGB. Use for missing base color / emissive.
Black
(Texture) : Black (0,0,0,255), sRGB. Use for missing emissive when the factor is zero.
FlatNormal
(Texture) : Tangent-space "up" normal (128,128,255,255), linear. Use for missing normal map.
LinearWhite
(Texture) : (255, 255, 255, 255) linear: AO=1, Roughness=1, Metallic=1. The shader multiplies by the per-material factors, so this reduces to factor-only sampling.
Dielectric
(Texture) : (255, 255, 0, 255) linear: AO=1, Roughness=1, Metallic=0. Bound to a metallic-roughness slot whose texture is referenced but could not be read, where sampling white would make the surface fully metallic and, without an environment map, black.
Public Methods
Dispose
public void Dispose()