JavaScripting

The definitive source of the best
JavaScript libraries, frameworks, and plugins.


  • ×

    A light Javascript & GLSL library for vizualisation and game purposes (2D or 3D).
    Filed under  › 

    • 🔾14%Overall
    • 287
    • 74.4 days
    • 🕩26
    • 👥4

    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.

    Show All