three.js - Lighting up object on mouse over -


i'm trying highlight meshes (animated characters etc) in game on mouse-over event. have multiple textures , skin.

i thought wrap them shadermaterial , on hit-test change uniforms brighten fragment shader.

to this, can somehow manipulate regular shading? can mix multiple materials, making shader take color values standard shader , tweak them? or need whole separate render pass , blend composer?

or maybe else entirely, ambient light applied 1 object/shader?

thanks suggestions.

repost, see comments details/discussion:

"you change whole material/shader on mouse over, although guess performance intensive, depending on number of switches user , rest of app doing. used once emissive color of regular phong material material.emissive.setrgb() example. give nice effects, too".


Comments

Popular posts from this blog

javascript - How to name a jQuery function to make a browser's back button work? -

python - Django-easy-pdf: xhtml2pdf reporting reportlab 2.2+ is required, but 3.0 installed -

collision detection - C++ library for mesh to mesh intersection: what is available? -