How to get the same SpotLight effect as Unity3d does?

Hello Everyone,

https://playground.babylonjs.com/#JFYQU3

The boundary effect of SpotLight in Babylon.js is too soft or too hard.

And When I set the intensity vlaue above like 4, there is something like the specular effect(the specular color is set to black) in the middle.

How to get the soft boundary effect of SpotLight like Unity3D?

Hello :slight_smile:

Unity does some global illumination to calculate the light effects, which leads to these “softer” elements, but is slower to calculate. Babylon is fully real-time, so the lights are computed in a cheaper way.

Thank you for your replay. So I have to make texture to get this kind of effect right?

Yeah some kind of texture and/or custom shader would be your best bet.