I'm fairly new to the world of web development and I've been experimenting with incorporating 3D images into a webpage. In one of my projects, I'm utilizing .glsl files to load textures and shaders. Everything works smoothly when I run my code locally, but as soon as I attempt to view it on a live server, I encounter the following error:
https://i.sstatic.net/6Ixik.png
I'm a bit puzzled by this error, as I faced a similar issue in another project when I was trying to access gsap from my node modules. In order to resolve that, I had to include a script directly into my HTML file, such as a CDN.
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.11.4/gsap.min.js"></script>
Therefore, I'm wondering if there is a similar solution for .glsl files, or if there is a more permanent fix for these types of errors.
By the way, the project I'm working on is a simple one involving HTML, CSS, and JavaScript (specifically ThreeJS).