Module Osg.Shader

module Shader: sig .. end
Osg.Shader is an application-level abstraction of an OpenGL shader.

It is a container to load the shader source code text and manage its compilation. An Osg.Shader may be attached to more than one Osg.Program. Shader will automatically manage per-context instancing of the internal objects, if that is necessary for a particular display configuration.

type t 
osg::Shader holder

type shader_type =
val create : shader_type -> string -> t
create type source