UnlitMaterial class
A material that renders textures without any lighting calculations.
Unlike SpatialMaterial, this material outputs the texture color multiplied by albedoColor directly, with no PBR shading, tone mapping, or gamma correction. This makes it ideal for:
- 2D canvas content rendered onto 3D surfaces
- UI panels and HUD elements in 3D space
- Emissive/self-lit surfaces
- Sky boxes and debug rendering
- Inheritance
-
- Object
- Resource<
GpuPipeline> - Material
- UnlitMaterial
Constructors
- UnlitMaterial({Color albedoColor = const Color(0xFFFFFFFF), Texture? albedoTexture})
- A material that renders textures without any lighting calculations.
Properties
- albedoColor ↔ Color
-
The material's base color, multiplied with albedoTexture.
getter/setter pair
- albedoTexture ↔ Texture
-
The texture to render. Multiplied by albedoColor.
getter/setter pair
- cullMode ↔ CullMode
-
Face culling mode for this material. Defaults to CullMode.none.
getter/setter pairinherited
- fragmentShader ↔ Shader
-
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- recreateResource ↔ bool
-
getter/setter pairinherited
- resource → GpuPipeline
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- vertexShader ↔ Shader
-
getter/setter pairinherited
Methods
-
apply(
covariant RenderContext3D context) → void -
override
-
createResource(
) → GpuPipeline -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited