matthewconstantine / glsl.js

a light Javascript & GLSL library for vizualisation and game purposes (2D or 3D).

Home Page:http://gre.github.io/glsl.js/examples/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flattr this git repo because this is a free and open-source library (Apache 2 licence).

glsl.js

schema

glsl.js is a subset* of a WebGL library which focus on making the GLSL (OpenGL Shading Language) easy and accessible for vizualisation and game purposes (2D or 3D).

* Subset, because we only focus on using a fragment shader (the vertex shader is static and take the full canvas size), But don't worry, you have a long way to go with just one fragment shader.

The concept is to split the rendering part in a GLSL fragment from the logic part in Javascript of your app/game. Both part are linked by a set of variables (the state of your app/game).

glsl.js aims to abstract every GL functions so you don't have to learn any OpenGL API. What you only need to care about is the logic in Javascript and the rendering in GLSL.

For more infos, read the blog article.

Licence

Copyright 2013 Gaetan Renaudeau

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

a light Javascript & GLSL library for vizualisation and game purposes (2D or 3D).

http://gre.github.io/glsl.js/examples/

License:Other


Languages

Language:JavaScript 76.5%Language:CSS 20.4%Language:C 2.6%Language:Makefile 0.5%Language:Shell 0.1%