Skip to content

Commit

Permalink
Merge pull request #88787 from dsnopek/webxr-depth-draw-fix
Browse files Browse the repository at this point in the history
Fix rendering issue with depth in WebXR
  • Loading branch information
akien-mga committed Mar 5, 2024
2 parents 2d408f4 + e35ccf9 commit 8680772
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/gles3/shaders/scene.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 8680772

Please sign in to comment.