getUniforms method

Map<String, dynamic> getUniforms(
  1. Material material
)

Implementation

Map<String, dynamic> getUniforms(Material material) {
  String? shaderID = shaderIDs[material.shaderID];
  Map<String, dynamic> uniforms;

  if (shaderID != null) {
    var shader = ShaderLib[shaderID];
    uniforms = cloneUniforms(shader["uniforms"]);
  } else {
    uniforms = material.uniforms;
  }

  return uniforms;
}