Fix: Workbench: Volume compositing

Regression after fe39456ba5
This commit is contained in:
Miguel Pozo
2023-10-16 13:24:35 +02:00
parent 1f0520034a
commit f2ba12a053

View File

@@ -226,7 +226,8 @@ vec4 volume_integration(vec3 ray_ori, vec3 ray_dir, float ray_inc, float ray_max
void main()
{
uint stencil = texelFetch(stencil_tx, ivec2(gl_FragCoord.xy), 0).r;
if (stencil != 0) {
const uint in_front_stencil_bits = 1u << 1;
if ((stencil & in_front_stencil_bits) != 0) {
/* Don't draw on top of "in front" objects. */
discard;
return;