Wrong material.diffuseColor when using StandardMaterial

I make something like that: https://playground.babylonjs.com/#QREXOQ#18

I use the hex color () for the interior #a30d21, but it seems the interior color is too bright and fresh, it seems 2 different colors.

Can help me to improve it?

Thanks all !!

It’s solely because of the lighting as you can see from this rotated same material

I’m not a lighting expert to guide you any further.

GI might help your purpose here

2 Likes

Yes, indeed. Here’s just a quick and dirty fix so you can see what’s happening (wouldn’t recommend to implement as such :face_with_hand_over_mouth:) Basically you have 2 directional lights. Light adds to light and when you open the box, the direction of the light obviously doesn’t hit the surface with the same angle. So either you have each light excluding the other mesh and hit the surface from the same angle. Or you make it unlit, or you could use GI or bake lights. Many possibilities

1 Like

Hi @zb_sj and @mawa , thanks for your help

2 Likes