StrandedKitty / three-csm

☀️ Cascaded shadow maps (CSMs) implementation for Three.js
MIT License
304 stars 22 forks source link

THREE.WebGLProgram: Shader Error 1282 - VALIDATE_STATUS false #17

Closed ashconnell closed 2 years ago

ashconnell commented 2 years ago

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:

THREE.WebGLProgram: Shader Error 1282 - VALIDATE_STATUS false

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

kriffe commented 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 image

image

image

Would be nice if this repo could be used instead of the examples in threejs

StrandedKitty commented 2 years ago

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.

StrandedKitty commented 2 years ago

I've updated this repo to match the implementation from three.js examples. Current package version - v2.0.0.