1.0.4 • Published 1 year ago

vite-plugin-lygia v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

vite-plugin-lygia

Lygia Local Solutions

How to use

  1. Installation lygia
yarn add lygia
  1. Installation vite-plugin-lygia
yarn add vite-plugin-lygia -D
  1. 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;
}
1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago