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) {
    final shader = shaderLib[shaderID];
    uniforms = cloneUniforms(shader["uniforms"]);
  } else {
    uniforms = material.uniforms;
  }

  return uniforms;
}