一覧へ戻る
vwochnik/rollup-plugin-glsl(新しいタブで開きます)
主要言語: JavaScript
Converts GLSL shader source files to modules
- star 数
- 23
- watcher 数
- 2
- fork 数
- 6
- issue 数
- 3
- 最終更新
- 2022/05/25
主要言語: JavaScript
Converts GLSL shader source files to modules
Converts GLSL shader source files to modules
import fragmentShaderSource from './fragment.glsl'; console.log(`Fragment shader source: ${fragmentShaderSource}`);
npm i rollup-plugin-glsl -D
import { rollup } from 'rollup'; import glsl from 'rollup-plugin-glsl'; rollup({ entry: 'main.js', plugins: [ glsl({ // By default, everything gets included include: 'lib/**/*.glsl', // Undefined by default exclude: ['**/index.html'], // Source maps are on by default sourceMap: false }) ] });
MIT