add arg for ibl intensity

This commit is contained in:
Nick Fisher
2023-03-12 14:41:25 +08:00
parent a8d0e37fec
commit b70d0a022b
6 changed files with 10 additions and 9 deletions

View File

@@ -362,7 +362,8 @@ public class SwiftPolyvoxFilamentPlugin: NSObject, FlutterPlugin, FlutterTexture
clear_assets(viewer!)
result("OK")
case "loadIbl":
load_ibl(self.viewer, call.arguments as! String)
let args = call.arguments as! Array<Any?>
load_ibl(self.viewer, args[0] as! String, Float(args[1] as! Double))
result("OK");
case "removeIbl":
remove_ibl(self.viewer)