Hello
I am using the threejs r131.It gives the error message mapTexelToLinear: no matching overloaded function found
But I change threejs r131 to threejs r111. The demo normal
I haven’t found the reason
The code is a little messy because it is temporary demo ShaderDemo ThreejsR111 ShaderDemo ThreejsR131 ShaderDemo Code
Could you help me look at this demo
The console error
three.module.js:18434 THREE.WebGLProgram: shader error: 0 35715 false gl.getProgramInfoLog Fragment shader is not compiled.HREE.WebGLShader: gl.getShaderInfoLog() fragment
ERROR: 0:577: ‘mapTexelToLinear’ : no matching overloaded function found …
Also note that implementing custom shader materials by reusing shader chunks is error prone unless you really know what you are doing. I have not studied your code in detail but it seems the runtime error is produces by boundingMesh.js (meaning its custom shader). The shader chunks your are using there are probably not compatible with the latest version of three.js.
Thank you Mugen87. I haved update my app.I find the threejs r131 no error. But I update the threejs r132 and the error ‘vNormal’ : undeclared identifier .
Try adding the new normal_pars_vertex, normal_pars_fragment and normal_vertex shader chunks to your custom shader. These chunks were introduced with r132. Update your code similar to the respective PR: