Skip to content

WebGLProgram Shader Error when loading glb model in three.js r151 #25836

@Victorfy1214

Description

@Victorfy1214

Description

Although I did not use shaders to render my model, I encountered this error when upgrading the three.js version from r150 to r151.

THREE.WebGLProgram: Shader Error 0 - VALIDATE_STATUS false
Program Info Log: Vertex shader is not compiled.
VERTEX
ERROR: 0:373: ‘uv2’ : undeclared identifier
ERROR: 0:373: ‘constructor’ : not enough data provided for construction

Reproduction steps

1.Change the version number of three. js in the project
2.Load my model which can render normally in the r150 version
3.Check the console and you will see the error message

Code

Please check my live examples, I have provided a demo that runs normally under version r150.1 and another that reports errors in version r151.3.

Live example

Screenshots

No response

Version

r151.3

Device

Desktop

Browser

Chrome

OS

Windows

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions