usesMaterialParameters property

bool usesMaterialParameters
final

Whether the material's numeric parameters reach the shader, so a UI can disable the sliders that would do nothing.

Declared rather than derived. It used to read this != unlit && this != normals, which was true of the six models that existed and wrong for any seventh — a custom model would have been told its own parameters mattered because it was not one of two names.

Implementation

final bool usesMaterialParameters;