If I am creating a box geometry then I am able to color its faces. But that color is visible only on the outer face, How to i color both the inner and outer face together?
Yes, but it is just darkening the shade of the overall object color and not taking the new or different color
THREE.FaceColors
is deprecated. vertexColors
is a boolean now. Besides, vertex colors are always multiplied with the value defined by the color
property. So if you define 0xff0000
as vertex colors and 0x00ffff
as color
, you obviously get zero and thus a black surface.
Updated fiddle: https://jsfiddle.net/qdxb51t8/
2 Likes
how do i color that one face separately but from both sides inner and out side?
Doesn’t the example already do this? I mean the respective faces of the cube are red on both sides (front and back).
Thanks a lot for the help.