Fix invisible rays

This commit is contained in:
Patrick Nicolas authored and Guillaume Meunier committed 2026-07-25 18:35:41 +02:00
1 parent d30ddc96e9
commit 32724d359f
1 file changed
+3 -1
+3 -1
View File
@@ -133,7 +133,9 @@ void main()
discard;
}
out_color = vec4(mesh.emissive_factor * texture(emissive_texture, texcoord).rgb, 0);
// https://registry.khronos.org/OpenXR/specs/1.1/html/xrspec.html#fundamentals-colors
// alpha can't be 0 or it will zero RGB values too
out_color = vec4(mesh.emissive_factor * texture(emissive_texture, texcoord).rgb, 1.0 / 255.0);
#endif // HTC_WORKAROUND
}