# ERROR: too many uniforms

**URL:** <https://discourse.threejs.org/t/error-too-many-uniforms/32938>\
**Category:** Questions\
**Tags:** shaders\
**Created:** [December 23, 2021, 6:49am UTC](https://discourse.threejs.org/t/error-too-many-uniforms/32938 "2021-12-23T06:49:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Run\_Zeng](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/run_zeng/32/23026_2.png) [@Run\_Zeng](https://discourse.threejs.org/u/Run_Zeng)\
**Post date:** [December 23, 2021, 6:49am UTC](https://discourse.threejs.org/t/error-too-many-uniforms/32938/1 "2021-12-23T06:49:03Z")

</div>

When I load a glb file and I get this error:  
THREE.WebGLProgram: Shader Error 0 - VALIDATE\_STATUS false

Program Info Log: invalid shaders  
VERTEX

ERROR: too many uniforms

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/a/d/adad739a61fb630a3afe753c9e78af1691fee6f0.png)

But an open source application( [GitHub - Adjam93/threejs-model-viewer: An application using the Three.js library to allow user to load model files and view them online with multiple viewing options.](https://github.com/Adjam93/threejs-model-viewer) ) using the old version Threee.js can render the model successfully.

How can I fix this error and render the model successfully
