Constructor

@:value({ glslVer : "120" })new(frag:String, vert:String, glslVer:String = "120")

Creates a new shader from the specified fragment and vertex source. Accepts #pragma header.

Parameters:

frag

Fragment source (pass null to use default)

vert

Vertex source (pass null to use default)

glslVer

Version of GLSL to use (defaults to 120)

Variables

@:value("120")glslVer:String = "120"

Methods

hget(v:String):Dynamic

hset(v:String, val:Dynamic):Dynamic