Comments (2)
Three issues: it looks like you are using old glslify syntax; glslify does not yet support es6 imports; and it looks like you aren't using the webpack-style (require) syntax in the readme of this module.
If you'd like to use the classic glslify style syntax, see ify-loader
module. There is an example in that readme. :)
from glslify-loader.
I was able to get it to work using the following:
import glShader from 'gl-shader'
import glslify from 'glslify'
var shader = glShader(gl,
glslify('./shader.vert'),
glslify('./shader.frag')
)
from glslify-loader.
Related Issues (15)
- Would be a great feature to allow for includes/imports within the shader files. HOT 3
- usage with glslify-optimize? HOT 1
- Do you need help maintaining this? HOT 4
- glslify.bundle is not a function HOT 4
- Seems not to work with webpack 2
- Using glslify transformations with loader HOT 1
- Webiste "http://stack.gl/glslify-loader/" Not Work [404] HOT 2
- webpack4? HOT 2
- transform does not work! HOT 2
- ERROR: Missing main() HOT 3
- Undocumented raw-loader bug
- Match syntax with glslify. HOT 3
- [bug?] Doesn't work when chained in a single module.loaders config, but works with multiple. HOT 3
- Can't use glslify loader to load shader files in webpack HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from glslify-loader.