Skip to content

Commit

Permalink
remove unused v_depth
Browse files Browse the repository at this point in the history
  • Loading branch information
keyboardspecialist committed Jan 31, 2025
1 parent d684417 commit a2cefeb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ GaussianSplatTexturePipelineStage.process = function (

shaderBuilder.addVarying("vec4", "v_splatColor");
shaderBuilder.addVarying("vec2", "v_vertPos");
shaderBuilder.addVarying("float", "v_depth");

shaderBuilder.addUniform(
"highp usampler2D",
Expand Down
2 changes: 0 additions & 2 deletions packages/engine/Source/Shaders/Model/GaussianSplatVS.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,6 @@ void gaussianSplatStage(ProcessedAttributes attributes, inout vec4 positionClip)
positionClip.z = clamp(positionClip.z, -abs(positionClip.w), abs(positionClip.w));

v_vertPos = corner ;
v_depth = positionClip.z;

v_splatColor = vec4(covariance.w & 0xffu, (covariance.w >> 8) & 0xffu, (covariance.w >> 16) & 0xffu, (covariance.w >> 24) & 0xffu) / 255.0;

//if tile bounding volumes are shown, increase transparency so we can see the entire box
Expand Down

0 comments on commit a2cefeb

Please sign in to comment.