ShaderMaterial.fromMap constructor

ShaderMaterial.fromMap([
  1. Map<String, dynamic>? parameters
])

Implementation

ShaderMaterial.fromMap([Map<String, dynamic>? parameters]) : super() {
  _init();
  if (parameters != null) {
    if (parameters['attributes'] != null) {
      console.warning('ShaderMaterial: attributes should now be defined in BufferGeometry instead.');
    }
    uniformsGroups = parameters['uniformsGroups'] ?? [];
    parameters.remove('uniformsGroups');
    setValuesFromString(parameters);
  }
}