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
Post a Comment