Skip to content

Commit

Permalink
enable planar reflection probe in GAME_VIEW
Browse files Browse the repository at this point in the history
  • Loading branch information
star-e committed Dec 26, 2024
1 parent 9fe9dd1 commit 475c2e6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions editor/assets/default_renderpipeline/builtin-pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -430,8 +430,9 @@ export class BuiltinForwardPassBuilder implements rendering.PipelinePassBuilder
&& camera.scene.mainLight.shadowEnabled;

// Reflection Probe
cameraConfigs.enablePlanarReflectionProbe =
cameraConfigs.isMainGameWindow || camera.cameraUsage === CameraUsage.SCENE_VIEW;
cameraConfigs.enablePlanarReflectionProbe = cameraConfigs.isMainGameWindow
|| camera.cameraUsage === CameraUsage.SCENE_VIEW
|| camera.cameraUsage === CameraUsage.GAME_VIEW;

// MSAA
cameraConfigs.enableMSAA = cameraConfigs.settings.msaa.enabled
Expand Down

0 comments on commit 475c2e6

Please sign in to comment.