add toggle for postprocessing and minor cleanup work

This commit is contained in:
Nick Fisher
2023-10-03 22:04:37 +08:00
parent d49b43c191
commit c1f8eae85e
189 changed files with 568 additions and 146 deletions

View File

@@ -53,7 +53,7 @@ class _ExampleWidgetState extends State<ExampleWidget> {
bool _vertical = false;
bool _rendering = false;
int _framerate = 60;
bool _postProcessing = true;
bool _initialized = false;
bool _coneHidden = false;
@@ -111,6 +111,12 @@ class _ExampleWidgetState extends State<ExampleWidget> {
_item(() {
_filamentController.loadIbl('assets/default_env/default_env_ibl.ktx');
}, 'load IBL'),
_item(() {
setState(() {
_postProcessing = !_postProcessing;
});
_filamentController.setPostProcessing(_postProcessing);
}, "${_postProcessing ? "Disable" : "Enable"} postprocessing"),
_item(
() {
_filamentController.removeSkybox();