add setMaterialDepthWrite method

This commit is contained in:
Nick Fisher
2024-09-20 14:53:16 +08:00
parent df0a744cc9
commit fd95c634f1

View File

@@ -599,6 +599,12 @@ abstract class ThermionViewer {
Future setMaterialPropertyInt(ThermionEntity entity, String propertyName,
int materialIndex, int value);
///
/// Sets the depthWrite material instance at [materialIndex] for [entity] to [enabled].
/// [entity] must have a Renderable attached.
///
Future setMaterialDepthWrite(ThermionEntity entity, int materialIndex, bool enabled);
///
/// Scale [entity] to fit within the unit cube.
///