pmndrs / examples

🍱 A monorepo holding pmndrs demos
https://pmndrs.github.io/examples/
MIT License
19 stars 6 forks source link

Fix threejs portal demo #79

Closed rndexe closed 3 months ago

rndexe commented 3 months ago
  1. Move from babel-plugin-glsl to vite-plugin-glslify
  2. Update encodings_fragment to colorspace_fragment
rndexe commented 3 months ago

The portal shadermaterial is not working in production. I'll have to fix that as well. Apparently vite/vite-plugin-glslify is not compiling the shader at build time, I could use a little help in trying to find a solution.

rndexe commented 3 months ago

On further analysis, it works fine when I run

npm run -w demos/threejs-journey-portal/ build
npm run -w demos/threejs-journey-portal/ preview

But it breaks when running npm run build && npx serve out