@@ -188,12 +188,6 @@ private static void configureLogger() {
188188 @ Nullable
189189 private LightProbe previewLightProbe ;
190190
191- /**
192- * The processor of post effects.
193- */
194- @ Nullable
195- private FilterPostProcessor postProcessor ;
196-
197191 /**
198192 * The FXAA filter.
199193 */
@@ -259,6 +253,8 @@ public Camera getCamera() {
259253
260254 @ Override
261255 public void simpleInitApp () {
256+ super .simpleInitApp ();
257+
262258 renderManager .setPreferredLightMode (TechniqueDef .LightMode .SinglePass );
263259 renderManager .setSinglePassLightBatchSize (15 );
264260
@@ -296,8 +292,8 @@ public void simpleInitApp() {
296292 flyCam .setDragToRotate (true );
297293 flyCam .setEnabled (false );
298294
299- postProcessor = new FilterPostProcessor ( assetManager );
300- postProcessor . initialize ( renderManager , viewPort );
295+
296+ final FilterPostProcessor postProcessor = getPostProcessor ( );
301297
302298 fxaaFilter = new FXAAFilter ();
303299 fxaaFilter .setEnabled (editorConfig .isFXAA ());
@@ -318,8 +314,6 @@ public void simpleInitApp() {
318314
319315 SceneLoader .install (this , postProcessor );
320316
321- viewPort .addProcessor (postProcessor );
322-
323317 if (Config .ENABLE_PBR ) {
324318 environmentCamera = new EnvironmentCamera (64 , Vector3f .ZERO );
325319 previewEnvironmentCamera = new EnvironmentCamera (64 , Vector3f .ZERO );
0 commit comments