1.0.0 • Published 6 years ago

parcel-plugin-shader-loader v1.0.0

Weekly downloads
7
License
MIT
Repository
github
Last release
6 years ago

GLSL Loader Plugin for Parcel

Load external GLSL files via import from your scripts

Getting started

Install using yarn:

yarn add parcel-plugin-shader-loader --dev

Install using npm

npm install parcel-plugin-shader-loader --save-dev

Import files with any of the following extensions:

  • .glsl
  • .fs
  • .vs
  • .vert
  • .frag
  • .glslv
  • .glslf

Example:

  import myFragShader from "./fragShader.fs"
  console.log(myFragShader) // -> Output file contents