You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the solution you'd like
Some scenarios require to highlight an object visually, an option could be to paint the object in one single color. This color should be ideally an hexadecimal value (following three.js constructor), and it will change the colors of all the materials of the object:
obj.color = 0xff0000 //this will paint the object in red
The property should be able to restore the original colors and materials setting it to null
obj.color = null //this will restore object original colors
A more advanced approach could be to accept all the different variations of color values a material accepts
The text was updated successfully, but these errors were encountered:
Minor version by [@jscastro76](https://github.com/jscastro76), some enhancements and bugs.
#### ✨ Enhancements
- #212 Allow to remove an object by name
- #211 Create an object property that changes all the materials by a color
- #169 Update to Three.js v127
- #214 Full refactor of tb.tube
- #215 Refactor tb.line
- #216 Refactor tb.update
- #217 utils.material should allow THREE.DoubleSide
- #218 Remove CustomEvent from events
- #219 Remove .getInverse()
- #220 Update Loaders
- #221 Add fflate module
#### 🪲 Bug fixes
- #222 fflate depends on a physical file
#### 📝 Documentation
- Updated [documentation](/docs/Threebox.md) (`obj.color`, `tb.removeByName`)
Describe the solution you'd like
Some scenarios require to highlight an object visually, an option could be to paint the object in one single color. This color should be ideally an hexadecimal value (following three.js constructor), and it will change the colors of all the materials of the object:
obj.color = 0xff0000 //this will paint the object in red
The property should be able to restore the original colors and materials setting it to null
obj.color = null //this will restore object original colors
A more advanced approach could be to accept all the different variations of color values a material accepts
The text was updated successfully, but these errors were encountered: