1080
« on: January 27, 2016, 05:17:04 PM »
we are using gl3 for sbw2 and you can write cute shaders using glsl.... basically you manipulate or throw out the incoming pixel data with a fragment shader and you manipulate the vertex data with a vertex shader. you can also pass a variety of different variables into the shader, like maps of additional textures (for example in one of the stages there is a map and u pass a texture for the grass and a texture for the heightmap) or float values (theres one dumb shader i made thats an alpha test that throws out pixels with alpha < input float)