Fork me on GitHub
View source

package haxepunk.graphics.shader

class SceneShader


extends Shader

Used to create a custom shader.

Static functions

View source

static fromAsset (name : String) : SceneShader

Create a custom shader from a text asset.

Constructor

View source

new (fragment : String) : Void

Create a custom shader from a string.

Functions

View source

bind () : Void

View source

build () : Void