Closed ashconnell closed 2 years ago
Similar error here. The shader (among other things) seems to have been updated a few times.
Some of the diffs in Shader.js and CSMShader.js in threejs examples
Would be nice if this repo could be used instead of the examples in threejs
Hi, you are right, this repo lags behind three.js examples, I don't update in often enough. But it only matters for new three.js versions.
I will update this repo and package soon (I hope this week), thanks.
I've updated this repo to match the implementation from three.js examples. Current package version - v2.0.0.
The current npm version of three-csm (1.1.1) doesn't seem to work with the current version of three (0.135.0).
It was spitting out errors about the shader:
After switching my import from
three-csm
to use the official examples,three/examples/jsm/csm/CSM.js
, it started working!I suspect this repo lags behind three?
Anyway, i'm mostly just posting this in case someone else gets stuck :)
Awesome shadows btw :D