Skip to content

Commit

Permalink
Use correct default value (null) for glslVersion for non-raw shaders (#…
Browse files Browse the repository at this point in the history
…5388)

Co-authored-by: Noeri Huisman <[email protected]>
  • Loading branch information
mrxz and mrxz authored Nov 17, 2023
1 parent dac50c5 commit 130156c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/shader.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Shader.prototype = {
this.material = new (this.raw ? THREE.RawShaderMaterial : THREE.ShaderMaterial)({
// attributes: this.attributes,
uniforms: this.uniforms,
glslVersion: this.raw ? THREE.GLSL3 : undefined,
glslVersion: this.raw ? THREE.GLSL3 : null,
vertexShader: this.vertexShader,
fragmentShader: this.fragmentShader
});
Expand Down

0 comments on commit 130156c

Please sign in to comment.