Skip to content
Draw a rectangle by WebGL
JavaScript GLSL
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
demo
.gitignore
README.md
capture.png
package.json

README.md

#gl-draw-rectangle This is my first WebGL project.

#I used glslify I don't like GLSL code on js file because I have to write GLSL STRING 😩.

So I used glslify! 🎉

attribute vec4 coords;
attribute float pointSize;

void main(void) {
 gl_Position = coords;
 gl_PointSize = pointSize;
}

I wrote vertex shader file.

const vert = glslify('./index.vert')

By using glslify, I can load GLSL external file 😎

#Other pacakges

You can’t perform that action at this time.