UstymUkhman / vite-plugin-glsl

:spider_web: Import, inline (and compress) GLSL shader files :electric_plug:
https://www.npmjs.com/package/vite-plugin-glsl
MIT License
321 stars 22 forks source link

`#version 300 es` comment gets removed #27

Closed luehmann closed 1 year ago

luehmann commented 1 year ago

With WebGL 2 some GLSL features require the #version 300 es comment to be present. Unfortunately vite-plugin-glsl removes this comment just as a regular comment.

luehmann commented 1 year ago

Never mind I somehow messed things up myself. Sorry

UstymUkhman commented 1 year ago

No problem at all, I'm glad you've solved it. :)