Skip to content

Commit

Permalink
WebGLProgram: Restore gl_FragDepth fallback. (#27855)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mugen87 authored Mar 1, 2024
1 parent 12664a6 commit 3fa2e72
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/renderers/webgl/WebGLProgram.js
Original file line number Diff line number Diff line change
Expand Up @@ -879,6 +879,7 @@ function WebGLProgram( renderer, cacheKey, parameters, bindingStates ) {
'#define varying in',
( parameters.glslVersion === GLSL3 ) ? '' : 'layout(location = 0) out highp vec4 pc_fragColor;',
( parameters.glslVersion === GLSL3 ) ? '' : '#define gl_FragColor pc_fragColor',
'#define gl_FragDepthEXT gl_FragDepth',
'#define texture2D texture',
'#define textureCube texture',
'#define texture2DProj textureProj',
Expand Down

0 comments on commit 3fa2e72

Please sign in to comment.