UnlitMaterial constructor
UnlitMaterial({
- TextureSource? colorTexture,
Creates an UnlitMaterial, optionally textured.
When colorTexture is null a 1×1 white placeholder is used so the
final color reduces to baseColorFactor.
Implementation
UnlitMaterial({TextureSource? colorTexture})
: baseColorTexture = colorTexture {
setFragmentShaderName('UnlitFragment');
}