add setMaterialDepthWrite method

This commit is contained in:
Nick Fisher committed 2024-10-23 14:44:59 +08:00
1 parent df0a744cc9
commit fd95c634f1
1 file changed
+6
@@ -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.
///