getNormalPlaceholderTexture static method
Texture
getNormalPlaceholderTexture(
)
Implementation
static gpu.Texture getNormalPlaceholderTexture() {
if (_normalPlaceholderTexture != null) {
return _normalPlaceholderTexture!;
}
_normalPlaceholderTexture = gpu.gpuContext.createTexture(
gpu.StorageMode.hostVisible,
1,
1,
);
if (_normalPlaceholderTexture == null) {
throw Exception('Failed to create normal placeholder texture.');
}
_normalPlaceholderTexture!.overwrite(
Uint32List.fromList(<int>[0xFFFF7574]).buffer.asByteData(),
);
return _normalPlaceholderTexture!;
}