# Distorted shadows

**URL:** https://discourse.threejs.org/t/distorted-shadows/6011
**Category:** Questions
**Tags:** shadows
**Created:** [February 5, 2019, 12:05pm UTC](https://discourse.threejs.org/t/distorted-shadows/6011 "2019-02-05T12:05:22Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![wyy2](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/wyy2/32/4746_2.png) [@wyy2](https://discourse.threejs.org/u/wyy2)
#### Post date: [February 5, 2019, 12:05pm UTC](https://discourse.threejs.org/t/distorted-shadows/6011/1 "2019-02-05T12:05:22Z")

</div>

I’m trying to add shadows, but on the shirt, they look distorted.

Here are my settings:

```
    // Renderer
    this.renderer.shadowMap.enabled = true;
	this.renderer.shadowMap.type = THREE.PCFSoftShadowMap; 

    // Lights
    var light = new THREE.AmbientLight( 0xffffff );
    light.intensity = 0.5;
    this.scene.add( light );

	var light = new THREE.PointLight( 0xffffff, 1, 100 );
	light.position.set(-5, 20, 8);

	light.castShadow = true;
	light.shadow.mapSize.width = 1024;
	light.shadow.mapSize.height = 1024;
	light.shadow.camera.near = 0.5;
	light.shadow.camera.far = 500;

	scene.add( light );

    // Mesh
    mesh.material.needsUpdate = true
    mesh.castShadow = true;
	mesh.receiveShadow = true;

```

Interesting that pants, and body shadows look good compared to red shirts.

![image](https://cdck-file-uploads-canada1.s3.dualstack.ca-central-1.amazonaws.com/flex035/uploads/threejs/original/2X/2/2d22ac94101dbd9c199cb2a017f213e2323951b9.jpeg)

---

<div class="post-metadata">

### Author: ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)
#### Post date: [February 5, 2019, 3:13pm UTC](https://discourse.threejs.org/t/distorted-shadows/6011/2 "2019-02-05T15:13:15Z")

</div>

Looks like self-shadowing artifacts. Try to modulate `light.shadow.bias` in order to mitigate the problem. A value like around positive/negative `0.01` should be appropriate.

---

<div class="post-metadata">

### Author: ![wyy2](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/wyy2/32/4746_2.png) [@wyy2](https://discourse.threejs.org/u/wyy2)
#### Post date: [February 6, 2019, 6:15am UTC](https://discourse.threejs.org/t/distorted-shadows/6011/3 "2019-02-06T06:15:22Z")

</div>

Thanks! -0.005 this worked 🙂
