GithubHelp home page GithubHelp logo

kryndex / glslify-loader Goto Github PK

View Code? Open in Web Editor NEW

This project forked from glslify/glslify-loader

0.0 1.0 0.0 136 KB

:floppy_disk: glslify loader module for webpack

Home Page: http://stack.gl/glslify-loader/

License: Other

JavaScript 16.90% GLSL 15.98% HTML 67.12%

glslify-loader's Introduction

glslify-loader

experimental

glslify loader module for webpack.

Installation

Generally, you'll want to use this alongside webpack's raw-loader module:

npm install --save glslify-loader raw-loader

Usage

NPM

Documentation: Using Loaders

Once installed, you should be able to require your shaders like so to have them bundled at build time:

var source = require('glslify!raw!./my-shader.glsl')

Configuration

Alternatively, you may apply these loaders automatically to all .glsl, .frag and .vert files by adding some additional configuration:

module.exports = {
  module: {
    loaders: [
      { test: /\.(glsl|frag|vert)$/, loader: 'raw', exclude: /node_modules/ },
      { test: /\.(glsl|frag|vert)$/, loader: 'glslify', exclude: /node_modules/ }
    ]
  }
}

Contributing

See stackgl/contributing for details.

License

MIT. See LICENSE.md for details.

glslify-loader's People

Contributors

davebrent avatar hughsk avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.