Merge pull request #88787 from dsnopek/webxr-depth-draw-fix

Fix rendering issue with depth in WebXR
This commit is contained in:
Rémi Verschelde 2024-03-05 09:55:56 +01:00
commit 86807721e3
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 3 deletions

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;