chore: fix spelling
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -29,7 +29,7 @@ class ThermionWasmMaterialInstance extends MaterialInstance {
|
||||
}
|
||||
|
||||
@override
|
||||
Future setDepthFunc(SampleCompareFunction depthFunc) {
|
||||
Future setDepthFunc(SamplerCompareFunction depthFunc) {
|
||||
// TODO: implement setDepthFunc
|
||||
throw UnimplementedError();
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user