Skip to content

Commit

Permalink
Merge pull request #46 from CyberAgentGameEntertainment/feature/bug-f…
Browse files Browse the repository at this point in the history
…ix-reflection

Fix bug create reflection probe.
  • Loading branch information
Haruma-K authored Mar 20, 2023
2 parents 143e926 + 3d80f9f commit 4e638d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Assets/Nova/Runtime/Core/Scripts/ScreenSpaceDistortion.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// --------------------------------------------------------------
// Copyright 2022 CyberAgent, Inc.
// Copyright 2023 CyberAgent, Inc.
// --------------------------------------------------------------

using System;
Expand Down Expand Up @@ -31,7 +31,7 @@ public override void Create()

public override void AddRenderPasses(ScriptableRenderer renderer, ref RenderingData renderingData)
{
if (_applyDistortionShader == null) return;
if (_applyDistortionShader == null || renderingData.cameraData.cameraType == CameraType.Reflection) return;
var cameraTargetDesciptor = renderingData.cameraData.cameraTargetDescriptor;

var distortedUvBufferFormat = SystemInfo.SupportsRenderTextureFormat(RenderTextureFormat.RGHalf)
Expand Down

0 comments on commit 4e638d8

Please sign in to comment.