diff --git a/thermion_dart/lib/src/viewer/src/ffi/src/thermion_viewer_ffi.dart b/thermion_dart/lib/src/viewer/src/ffi/src/thermion_viewer_ffi.dart index 0bfb0bcf..e04356ed 100644 --- a/thermion_dart/lib/src/viewer/src/ffi/src/thermion_viewer_ffi.dart +++ b/thermion_dart/lib/src/viewer/src/ffi/src/thermion_viewer_ffi.dart @@ -2279,7 +2279,7 @@ class ThermionFFIMaterialInstance extends MaterialInstance { } @override - Future setDepthFunc(SampleCompareFunction depthFunc) async { + Future setDepthFunc(SamplerCompareFunction depthFunc) async { MaterialInstance_setDepthFunc(_pointer, TDepthFunc.values[depthFunc.index]); } diff --git a/thermion_dart/lib/src/viewer/src/shared_types/material.dart b/thermion_dart/lib/src/viewer/src/shared_types/material.dart index b4d0bbb2..9b6508e2 100644 --- a/thermion_dart/lib/src/viewer/src/shared_types/material.dart +++ b/thermion_dart/lib/src/viewer/src/shared_types/material.dart @@ -1,6 +1,6 @@ import 'package:thermion_dart/src/viewer/src/ffi/src/callbacks.dart'; -enum SampleCompareFunction { +enum SamplerCompareFunction { /// !< Less or equal LE, /// !< Greater or equal @@ -20,7 +20,7 @@ enum SampleCompareFunction { } abstract class MaterialInstance { Future setDepthWriteEnabled(bool enabled); - Future setDepthFunc(SampleCompareFunction depthFunc); + Future setDepthFunc(SamplerCompareFunction depthFunc); Future setDepthCullingEnabled(bool enabled); Future setParameterFloat4(String name, double x, double y, double z, double w); diff --git a/thermion_dart/lib/src/viewer/src/web_wasm/src/material_instance.dart b/thermion_dart/lib/src/viewer/src/web_wasm/src/material_instance.dart index 1f29be38..754dad05 100644 --- a/thermion_dart/lib/src/viewer/src/web_wasm/src/material_instance.dart +++ b/thermion_dart/lib/src/viewer/src/web_wasm/src/material_instance.dart @@ -29,7 +29,7 @@ class ThermionWasmMaterialInstance extends MaterialInstance { } @override - Future setDepthFunc(SampleCompareFunction depthFunc) { + Future setDepthFunc(SamplerCompareFunction depthFunc) { // TODO: implement setDepthFunc throw UnimplementedError(); } diff --git a/thermion_dart/test/material_tests.dart b/thermion_dart/test/material_tests.dart index 031eb660..4324a9fc 100644 --- a/thermion_dart/test/material_tests.dart +++ b/thermion_dart/test/material_tests.dart @@ -168,7 +168,7 @@ void main() async { // with default depth func, blue cube renders behind the green cube await testHelper.capture(viewer, "material_instance_depth_func_default"); - await materialInstance2.setDepthFunc(SampleCompareFunction.A); + await materialInstance2.setDepthFunc(SamplerCompareFunction.A); await testHelper.capture(viewer, "material_instance_depth_func_always"); await viewer.dispose();