mirror of
https://github.com/WiVRn/WiVRn.git
synced 2026-11-25 19:41:38 -08:00
Fix invisible rays
This commit is contained in:
1 parent
d30ddc96e9
commit
32724d359f
1 file changed
+3
-1
@@ -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
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user