Fix invisible rays
This commit is contained in:
committed by
Guillaume Meunier
parent
d30ddc96e9
commit
32724d359f
@@ -133,7 +133,9 @@ void main()
|
|||||||
discard;
|
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
|
#endif // HTC_WORKAROUND
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user