three.js - Switch lighting of THREE.MeshPhongMaterial on / off dynamically -


i wonder if there way turn off lighting meshphongmaterial on runtime.

i'm working on scene big distances between meshes , because of it's impossible work implemented shadow of three.js.

so wanna try turn off light on object, when it's behind another, i'll determine ray collision. in next step nice ease in , out, instead of switching light off.

any hints? thank in advance!


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -