meshPhongMaterial emissive property doesn't accept HexCode color #1831
remysabliet
started this conversation in
General
Replies: 1 comment 4 replies
-
0xFFFF00 is a hexadecimal integer but you're specifying it as a string here. <meshPhongMaterial emissive={0xFFFF00} /> |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Salutations,
Bug or feature request, I can't be sure.
The emissive property of
<meshPhongMaterial />
does not accept HexCode color, While it does in Three.JS(Ref: https://threejsfundamentals.org/threejs/lessons/threejs-scenegraph.html)
Example not working:
<meshPhongMaterial emissive='0xFFFF00' />
Working example:
<meshPhongMaterial emissive='yellow' />
Please let me know
Beta Was this translation helpful? Give feedback.
All reactions