Good godrays effect, ready for use in your next Three.JS project! Built on the pmndrs postprocessing library for easy integration + interoperation with other effects.
@N8Programs has been releasing some really awesome demos for Three.JS over the past months. Most recently, he put out a godrays demo that blew me away. I reached out, and I expressed my interest in making that demo into a standalone module.
three-good-godrays is the result! I’ve already added it to one of my own projects and am extremely happy with the results.
Hi, I found some problems with the demo you linked and have fixed them:
The imports were broken; I switched them to ES module imports with an import map. I’m not super familiar with codepen, but switching them to es module imports seems to work.
The scene you were trying to load wasn’t working because it was referencing a local file. I downloaded the scene from the point light demo (https://three-good-godrays.ameo.design/demo_pointlight.glb) ad re-hosted it on an fileserver with CORS enabled so (ameo.link/u/) so that it would work for this.
Those were the main issues; I also tweaked some other things with your scene like the resize handler and gltf loading to get it looking decent and working properly.
Hi, ameo. Your contribution makes my love for Threejs even further. Thank you for your patiently answer. Please allow me to say to you in poor English: Happy 1024.
I’ve just published version 0.5.0 of three-good-godrays
It contains a fix for bad color banding on newer Three.JS/postprocessing library versions due to the color format on internal frame buffers not being high enough.
It also includes fixes from previous versions that work around bugs in postprocessing involving recursive depth texture bindings that can happen in some circumstances.
does this current build support 132? ive installed the postprocessing version v6.29.3 which is three ≥ 0.125.0 < 0.149.0 but when i try to install god rays it says i need a higher version of postprocessing ? which takes me out of the r132 zone where can i down the 0.4.0 version?