vite-plugin-lygia
v1.0.4
Published
Local resolution lygia dependencies for glsl
Downloads
11
Readme
vite-plugin-lygia
Lygia Local Solutions
How to use
- Installation lygia
yarn add lygia
- Installation vite-plugin-lygia
yarn add vite-plugin-lygia -D
- Vite Configuration
import lygia from 'vite-plugin-lygia';
import glsl from 'vite-plugin-glsl';
export default {
plugins: [
lygia(),
glsl(),
],
}
Using this Plugin
import fragmentShader from './fragmentShader.frag';
// fragmentShader.vert
#include "lygia/generative/fbm.glsl"
void main(void) {
vec4 color = vec4(fbm(0.5))
gl_FragColor = color;
}