Skip to content

Commit 50d836f

Browse files
committed
some cleanups
1 parent 5f8bb78 commit 50d836f

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

package/Runtime/GaussianSplatURPFeature.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public override void RecordRenderGraph(RenderGraph renderGraph, ContextContainer
110110
}
111111
else
112112
{
113-
// Legacy single-eye rendering for backward compatibility
113+
// Single-eye rendering
114114
commandBuffer.SetGlobalTexture(s_gaussianSplatRT, data.GaussianSplatRT);
115115
CoreUtils.SetRenderTarget(commandBuffer, data.GaussianSplatRT, data.SourceDepth, ClearFlag.Color, Color.clear);
116116
Material matComposite = GaussianSplatRenderSystem.instance.SortAndRenderSplats(data.CameraData.camera, commandBuffer);

package/Shaders/GaussianComposite.shader

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ CGPROGRAM
1616
#pragma require compute
1717
#pragma use_dxc
1818
#pragma require 2darray
19-
#pragma multi_compile_instancing
20-
#pragma require instancing
2119

2220
// Enable proper multi-compile support for all stereo rendering modes
2321
#pragma multi_compile_local _ UNITY_SINGLE_PASS_STEREO STEREO_INSTANCING_ON STEREO_MULTIVIEW_ON
@@ -60,7 +58,6 @@ int _CustomStereoEyeIndex;
6058
half4 frag (v2f i) : SV_Target
6159
{
6260
uint eyeIndex = _CustomStereoEyeIndex;
63-
// return float4(eyeIndex == 0 ? 1 : 0, 0, eyeIndex == 1 ? 1 : 0, 1); // Red = left, Blue = right
6461

6562
// Normalize the pixel coordinates to [0,1] range
6663
float2 normalizedUV = float2(i.vertex.x / _ScreenParams.x, i.vertex.y / _ScreenParams.y);

0 commit comments

Comments
 (0)