Open Tajammal-Maqbool opened 6 months ago
Hi, thanks for reporting!
I would think that your issue is because you are scaling the model by 2:
obj.scale([2, 2, 2]);
this will make your model span ~60-100 units depending on the axis. Could you try to use a directional light to see the result? Something pointing from the top to the bottom with a slight angle :)
I have tried to remove the scalling but it is still same. I have added multiple sun lights in the scene but it not effect the model if it loads runtime but if I load any model in editor then lights effect it correctly.
@DavidPeicho You can copy this code in any project or new project then add this component to any object into scene. Then run it and you will see this bug.
Hi, I am using Wonderland Engine for a game but I am facing a bug in it. I have loaded a model at runtime but lightning doesn’t work properly on it, If i add this same model directly from the editor then lightning applied correctly.
Here is code:
See the attached image: