vite-plugin-glsl
Advanced tools
Comparing version
@@ -9,3 +9,3 @@ { | ||
"main": "./src/index.js", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"private": false, | ||
@@ -59,3 +59,3 @@ "license": "MIT", | ||
"peerDependencies": { | ||
"vite": "^3.0.0 || ^4.0.0 || ^5.0.0" | ||
"vite": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0" | ||
}, | ||
@@ -66,3 +66,3 @@ "dependencies": { | ||
"devDependencies": { | ||
"vite": "^5.1.6" | ||
"vite": "^6.0.1" | ||
}, | ||
@@ -69,0 +69,0 @@ "engines": { |
@@ -9,3 +9,3 @@ # Vite Plugin GLSL # | ||
_Inspired by [threejs-glsl-loader](https://github.com/MONOGRID/threejs-glsl-loader) and [vite-plugin-string](https://github.com/aweikalee/vite-plugin-string), compatible with [Babylon.js](https://www.babylonjs.com/), [three.js](https://threejs.org/) and [lygia](https://github.com/patriciogonzalezvivo/lygia)._ | ||
_Inspired by [threejs-glsl-loader](https://github.com/MONOGRID/threejs-glsl-loader) and [vite-plugin-string](https://github.com/aweikalee/vite-plugin-string), compatible with [Babylon.js](https://www.babylonjs.com/), [three.js](https://threejs.org/) and [lygia](https://lygia.xyz/)._ | ||
@@ -20,2 +20,4 @@ ## Installation ## | ||
pnpm add -D vite-plugin-glsl | ||
# or | ||
bun add vite-plugin-glsl --dev | ||
``` | ||
@@ -73,3 +75,3 @@ | ||
### Example ### | ||
## Example ## | ||
@@ -102,5 +104,5 @@ ``` | ||
#ifndef GL_FRAGMENT_PRECISION_HIGH | ||
precision mediump float; | ||
precision mediump float; | ||
#else | ||
precision highp float; | ||
precision highp float; | ||
#endif | ||
@@ -162,5 +164,5 @@ | ||
#ifndef GL_FRAGMENT_PRECISION_HIGH | ||
precision mediump float; | ||
precision mediump float; | ||
#else | ||
precision highp float; | ||
precision highp float; | ||
#endif | ||
@@ -167,0 +169,0 @@ |
@@ -5,3 +5,3 @@ /** | ||
* @description Import, inline (and compress) GLSL shader files | ||
* @version 1.3.0 | ||
* @version 1.3.1 | ||
* @license MIT | ||
@@ -8,0 +8,0 @@ */ |
@@ -204,3 +204,3 @@ import { dirname, resolve, extname, posix, sep } from 'path'; | ||
if (/@(vertex|fragment)/.test(line) || line.endsWith('return')) line += ' '; | ||
if (/@(vertex|fragment|compute)/.test(line) || line.endsWith('return')) line += ' '; | ||
@@ -207,0 +207,0 @@ if (line[0] === '#') { |
Sorry, the diff of this file is not supported yet
25779
0.12%233
0.87%