# Three.js photorealistic shadow

**URL:** <https://discourse.threejs.org/t/three-js-photorealistic-shadow/9581>\
**Category:** Questions\
**Tags:** animation, geometry, shaders\
**Created:** [September 10, 2019, 4:52pm UTC](https://discourse.threejs.org/t/three-js-photorealistic-shadow/9581 "2019-09-10T16:52:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DevArt](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/devart/32/6940_2.png) [@DevArt](https://discourse.threejs.org/u/DevArt)\
**Post date:** [September 10, 2019, 4:52pm UTC](https://discourse.threejs.org/t/three-js-photorealistic-shadow/9581/1 "2019-09-10T16:52:39Z")

</div>

Hi, there.

It’s my pleasure to ask my 3rd question.

The problems are:

- The shadow of any object is not realistic. ![28%20AM](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/2X/1/100fe4d9cd41ac2ae970b53bc7d584b143ddf628.png)

- Not same feeling as blender.  
I am working with Blender for modeling, mapping and exporting as gltf/glb.  
But the view feeling of each model on Web browser, it’s not same as on the blender.  
Of course, I didn’t exported light and camera. Just models with textures(diffuse, bump, emissive…).

Hopefully, would like to hear your advice.  
Cheers

---

<div class="post-metadata">

**Author:** ![marquizzo](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/marquizzo/32/25192_2.png) [@marquizzo](https://discourse.threejs.org/u/marquizzo)\
**Post date:** [September 10, 2019, 5:12pm UTC](https://discourse.threejs.org/t/three-js-photorealistic-shadow/9581/2 "2019-09-10T17:12:10Z")

</div>

> [@DevArt](#):
>
> Not same feeling as blender.

What does your Blender output look like? Pre-rendered graphics and realtime graphics are computed differently, so chances are you’ll never achieve the same quality with WebGL as with the Blender rendering engine. With that being said, you might want to increase your [`LightShadow.mapSize`](https://threejs.org/docs/index.html#api/en/lights/shadows/LightShadow.mapSize) to something higher than the 512x512 default. “Higher values give better quality shadows at the cost of computation time.”

---

<div class="post-metadata">

**Author:** ![Fyrestar](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/fyrestar/32/52793_2.png) [@Fyrestar](https://discourse.threejs.org/u/Fyrestar)\
**Post date:** [September 10, 2019, 10:30pm UTC](https://discourse.threejs.org/t/three-js-photorealistic-shadow/9581/3 "2019-09-10T22:30:08Z")

</div>

You can’t really compare shadows from software like Blender with realtime graphics, there is no contact hardening or blurring etc, it is classic shadow mapping with percentage close filtering to soften the edges.

If you want photorealistic shadows without knowing to implement the most advanced realtime techniques, you can still bake them into maps in blender, but you wont have dynamic shadows then.
