Material class abstract

Base material Resource, it holds the shader library that should be used for the material.

Inheritance
Implementers

Constructors

Material({required Shader vertexShader, required Shader fragmentShader})
Base material Resource, it holds the shader library that should be used for the material.

Properties

cullMode ↔ CullMode
Face culling mode for this material. Defaults to CullMode.none.
getter/setter pair
fragmentShader ↔ Shader
getter/setter pair
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 pair

Methods

apply(RenderContext context) → void
createResource() → GpuPipeline
override
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

Static Properties

defaultMaterial ↔ Material
getter/setter pair