add setCameraModelMatrix method for iOS

This commit is contained in:
Nick Fisher
2023-01-06 13:41:50 +08:00
parent 52af1171e1
commit 713e4e8112
7 changed files with 90 additions and 20 deletions

View File

@@ -209,6 +209,8 @@ class _MyAppState extends State<MyApp> {
await _filamentController.clearLights();
break;
case 32:
await _filamentController
.setCameraModelMatrix(List<double>.filled(16, 1.0));
// await _filamentController.setBoneTransform(
// _cube!,
@@ -297,6 +299,7 @@ class _MyAppState extends State<MyApp> {
_item(value: 29, child: Text('add light')),
_item(value: 30, child: Text('remove light')),
_item(value: 31, child: Text('clear all lights')),
_item(value: 32, child: Text('set camera model matrix')),
])),
Container(
width: _vertical ? 200 : 400,