Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
### Fixed

- Fixed the gizmos being drawn in Game View.
- Fixed camera stacking.

## [0.0.1]

Expand Down
4 changes: 3 additions & 1 deletion Runtime/SRP/VXGIRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,12 @@ void RenderGBuffers(ScriptableRenderContext renderContext, Camera camera) {
[System.Diagnostics.Conditional("UNITY_EDITOR")]
void RenderGizmos(ScriptableRenderContext renderContext, Camera camera, GizmoSubset gizmoSubset)
{
if (UnityEditor.SceneView.currentDrawingSceneView?.drawGizmos ?? false)
#if UNITY_EDITOR
if (UnityEditor.Handles.ShouldRenderGizmos())
{
renderContext.DrawGizmos(camera, gizmoSubset);
}
#endif
}

void RenderLighting(ScriptableRenderContext renderContext, Camera camera, VXGI vxgi) {
Expand Down