Fix rendering issue with depth in WebXR

This commit is contained in:
David Snopek 2024-02-24 16:52:14 -06:00
parent 2e7fc81315
commit e35ccf92d0

View File

@ -913,8 +913,7 @@ ivec2 multiview_uv(ivec2 uv) {
uniform highp mat4 world_transform;
uniform mediump float opaque_prepass_threshold;
#ifndef MODE_RENDER_DEPTH
#ifdef RENDER_MATERIAL
#if defined(RENDER_MATERIAL)
layout(location = 0) out vec4 albedo_output_buffer;
layout(location = 1) out vec4 normal_output_buffer;
layout(location = 2) out vec4 orm_output_buffer;
@ -925,7 +924,6 @@ layout(location = 3) out vec4 emission_output_buffer;
layout(location = 0) out vec4 frag_color;
#endif // !RENDER_MATERIAL
#endif // !MODE_RENDER_DEPTH
vec3 F0(float metallic, float specular, vec3 albedo) {
float dielectric = 0.16 * specular * specular;