TypeError: material.onBeforeRender is not a function. (In 'material.onBeforeRender( _this, scene, camera, geometry, object, group )', 'material.onBeforeRender' is undefined)

Make sure that all library files are from the same release. It is not valid to use the latest version of three.module.js with classes from r127.

1 Like