ShaderMaterial constructor
ShaderMaterial([
- Map<
MaterialProperty, dynamic> ? parameters
parameters
- (optional) an object with one or more
properties defining the material's appearance. Any property of the
material (including any property inherited from Material and
MeshStandardMaterial) can be passed in here.
The exception is the property color, which can be passed in as a hexadecimal int and is 0xffffff (white) by default. Color is called internally.
Implementation
ShaderMaterial([Map<MaterialProperty, dynamic>? parameters]) : super() {
_init();
if (parameters != null) {
if (parameters[MaterialProperty.attributes] != null) {
console.warning('ShaderMaterial: attributes should now be defined in BufferGeometry instead.');
}
setValues(parameters);
}
}