chickadee » gl-utils » make-shader

make-shader TYPE SOURCEprocedure

Creates and compiles a shader object given the shader's type (e.g. +vertex-shader+, +geometry-shader+, +fragment-shader+), and a string containing the GLSL source. Returns an integer representing the ID of the shader.