It’s not allowed to pass uniforms
as a parameter to MeshLambertMaterial
. This only works for ShaderMaterial
and RawShaderMaterial
. When extending a material with onBeforeCompile()
, there is no need to use UniformsUtils
. Do it like in this example that shows how to extend MeshNormalMaterial
: