Constructor

new()

Methods

inlinefromSource(vertSource:String, fragSource:String, ?customAttributes:ReadOnlyArray<ShaderAttribute>):Shader

Available on clay

inlinedestroy(shader:Shader):Void

inlineclone(shader:Shader):Shader

inlinesetInt(shader:Shader, name:String, value:Int):Void

inlinesetFloat(shader:Shader, name:String, value:Float):Void

inlinesetColor(shader:Shader, name:String, r:Float, g:Float, b:Float, a:Float):Void

inlinesetVec2(shader:Shader, name:String, x:Float, y:Float):Void

inlinesetVec3(shader:Shader, name:String, x:Float, y:Float, z:Float):Void

inlinesetVec4(shader:Shader, name:String, x:Float, y:Float, z:Float, w:Float):Void

inlinesetFloatArray(shader:Shader, name:String, array:Array<Float>):Void

inlinesetTexture(shader:Shader, name:String, slot:Int, texture:Texture):Void

inlinesetMat4FromTransform(shader:Shader, name:String, transform:Transform):Void

@:has_untypedload(path:String, ?customAttributes:ReadOnlyArray<ShaderAttribute>, ?options:Null<LoadShaderOptions>, _done:(shader:Shader) ‑> Void):Void

Available on unity