Skip to content

Commit

Permalink
fragment shader also needs to define precision for sampler2DArray (#2…
Browse files Browse the repository at this point in the history
  • Loading branch information
kasparsj authored Sep 29, 2023
1 parent cdc155e commit cc98a1f
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 @@ -846,6 +846,7 @@ function WebGLProgram( renderer, cacheKey, parameters, bindingStates ) {
].join( '\n' ) + '\n' + prefixVertex;

prefixFragment = [
'precision mediump sampler2DArray;',
'#define varying in',
( parameters.glslVersion === GLSL3 ) ? '' : 'layout(location = 0) out highp vec4 pc_fragColor;',
( parameters.glslVersion === GLSL3 ) ? '' : '#define gl_FragColor pc_fragColor',
Expand Down

0 comments on commit cc98a1f

Please sign in to comment.