Fork me on GitHub

New Features and a fun webgl demo

It’s now possible to customize the webgl vertex shader in GLGE the idea being that you can let GLGE do most of the hard work and only add in the extra code needed for custom effects. At the moment you can only update vertex positions but I’m planing for more. To use it you simply need to wirte a function in GLSL:

vec3 GLGE_Position(vec3 pos){
//code to update position here
}

then feed it into a GLGE object:
object.setVertexShaderInjection({GLSL code to add});

Expect more additions soon with regard to customizing the shaders. I’ve also added an optional emit pass to the 2dfilter class so you can now do cool glow effects :-) Here’s a small demo showing off the new features:

Features Demo

In addition I’ve also been playing around with the idea of adding a dynamic hair effect to GLGE, I’m still just playing around at the moment. I’ve put together a fun demo to show where things are at, best viewed with sound ;-)

Play with the hair ball

Tags: , ,