example project updates
This commit is contained in:
@@ -56,6 +56,30 @@ class _RenderingSubmenuState extends State<RenderingSubmenu> {
|
|||||||
child: Text(
|
child: Text(
|
||||||
"${ExampleWidgetState.postProcessing ? "Disable" : "Enable"} postprocessing"),
|
"${ExampleWidgetState.postProcessing ? "Disable" : "Enable"} postprocessing"),
|
||||||
),
|
),
|
||||||
|
MenuItemButton(
|
||||||
|
onPressed: () {
|
||||||
|
ExampleWidgetState.antiAliasingMsaa =
|
||||||
|
!ExampleWidgetState.antiAliasingMsaa;
|
||||||
|
widget.controller.setAntiAliasing(
|
||||||
|
ExampleWidgetState.antiAliasingMsaa,
|
||||||
|
ExampleWidgetState.antiAliasingFxaa,
|
||||||
|
ExampleWidgetState.antiAliasingTaa);
|
||||||
|
},
|
||||||
|
child: Text(
|
||||||
|
"${ExampleWidgetState.antiAliasingMsaa ? "Disable" : "Enable"} MSAA antialiasing"),
|
||||||
|
),
|
||||||
|
MenuItemButton(
|
||||||
|
onPressed: () {
|
||||||
|
ExampleWidgetState.antiAliasingFxaa =
|
||||||
|
!ExampleWidgetState.antiAliasingFxaa;
|
||||||
|
widget.controller.setAntiAliasing(
|
||||||
|
ExampleWidgetState.antiAliasingMsaa,
|
||||||
|
ExampleWidgetState.antiAliasingFxaa,
|
||||||
|
ExampleWidgetState.antiAliasingTaa);
|
||||||
|
},
|
||||||
|
child: Text(
|
||||||
|
"${ExampleWidgetState.antiAliasingFxaa ? "Disable" : "Enable"} FXAA antialiasing"),
|
||||||
|
),
|
||||||
MenuItemButton(
|
MenuItemButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
ExampleWidgetState.recording = !ExampleWidgetState.recording;
|
ExampleWidgetState.recording = !ExampleWidgetState.recording;
|
||||||
|
|||||||
Reference in New Issue
Block a user