Hi Needle,
I worked on a project and I saw that is pretty simple to add smooth shadow to my project just with :
import { Behaviour, serializable, Light } from "@needle-tools/engine"
import * as THREE from 'three'
export class PassFinding extends Behaviour {
@serializable(Light)
myLight?: Light;
start() {
//Light changes
this.context.renderer.shadowMap.enabled = true
this.context.renderer.shadowMap.type = THREE.VSMShadowMap
if(this.myLight != undefined) {
//@ts-ignore
this.myLight.light.shadow.radius = 25
//@ts-ignore
this.myLight.light.shadow.blurSamples = 25
}
}
}
Do you think that you could add the options to easily change the shadowmap of the renderer, and modify the shadow.radius + shadow.blurSamples directly in your script Light Shadow Data ?
Or an other “Smooth shadow” script ? (I can make it if necessary)
by user 224464722878005248