// outputnamespaceTHREE{exporttypeVector2={x:number,y:number,isVector2:true};}typeUniforms={foo:[number,number]|Float32Array|THREE.Vector2}; webglthreejstypescripttypesglslimportglslifyvite-plugin Releases No releases published Packages No packages published Languages TypeScript98.4% Other1.6%...
{ "name": "vite-plugin-glslify-inject", "version": "1.1.2", "type": "module", "description": "A plugin to write GLSL more comfortably.", "scripts": { "build": "tsc -p ./tsconfig.build.json", "test": "jest --watchAll" }, "main": "./dist/plugin.js", "types": "./di...
3 changes: 2 additions & 1 deletion 3 vite.config.ts Original file line numberDiff line numberDiff line change @@ -1,6 +1,7 @@ import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' import glslify from 'vite-plugin-glslify' export default defineConfig({ plug...
fix: build error with Vite Browse files closes #1 main geoffreytools committed Jun 6, 2024 1 parent 30d09b8 commit c9453c1 Showing 1 changed file with 7 additions and 2 deletions. Whitespace Ignore whitespace Split Unified 9 changes: 7 additions & 2 deletions 9 src/lib/str.ts ...
npm install --save-dev vite-plugin-glslify-inject The vite.config.js corresponding to the above example: we invoke the plugin; we pass in your include/exclude patterns; we pass a path alias pointing to the location of your shaders for .d.ts modules to be generated; we pass a library ...