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.
Give it a try and let us know what you think!
Works Great. love the name!
Excuse me, I followed the github example, but it doesn’t seem to be working. Here’s the link to codenpen:
I would appreciate it if you could spare your precious time to take a look at it for me.
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.
Bye the way, this is the best gift I have ever received in this day. Thanks again.
You’re welcome! I’m glad I could help out.
Thanks for checking out the project