Skip to content

Commit

Permalink
Don't cull transparent DTX meshes from pick render pass
Browse files Browse the repository at this point in the history
  • Loading branch information
xeolabs committed Feb 29, 2024
1 parent 20aeff3 commit efb8703
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -324,11 +324,6 @@ export class DTXTrianglesPickMeshRenderer {
// get color
src.push("uvec4 color = texelFetch (uObjectPerObjectColorsAndFlags, ivec2(objectIndexCoords.x*8+0, objectIndexCoords.y), 0);");

src.push(`if (color.a == 0u) {`);
src.push(" gl_Position = vec4(3.0, 3.0, 3.0, 1.0);"); // Cull vertex
src.push(" return;");
src.push("};");

// get pick-color
src.push("vPickColor = vec4(texelFetch (uObjectPerObjectColorsAndFlags, ivec2(objectIndexCoords.x*8+1, objectIndexCoords.y), 0)) / 255.0;");

Expand Down

0 comments on commit efb8703

Please sign in to comment.