three_dart
three_dart copied to clipboard
Transparent scene
Hello, first of all I want to thank you for such a fantastic library, you did a really great job!
I have one question, is it possible to make a scene transparent in order to use background of flutter view?
You can try (MyApp.engine!.renderer is THREE.WebGLRenderer) :
MyApp.engine!.renderer = THREE.WebGLRenderer(_options);
MyApp.engine!.renderer!.alpha = true;
MyApp.engine!.renderer!.setClearColor(THREE.Color(0x000000), 0);
MyApp.engine!.renderer!.autoClearDepth = true;
And on your scene :
MyApp.engine!.scene = THREE.Scene();
MyApp.engine!.scene!.background = null;
Result :
(In my case my background is a map)