Static methods

staticclone(fromShader:ShaderImpl):ShaderImpl

Available on unity

Constructor

new()

Available on clay

new(?customAttributes:ReadOnlyArray<ShaderAttribute>)

Available on headless

new(unityShader:Dynamic, ?customAttributes:ReadOnlyArray<ShaderAttribute>)

Available on unity

Variables

@:value(false)isBatchingMultiTexture:Bool = false

Available on clay

@:value(null)path:String = null

Available on unity

@:value(null)unityShader:Dynamic = null

Available on unity

Methods

clone():ShaderImpl

Available on clay

setInt(name:String, value:Int):Void

Available on unity

setFloat(name:String, value:Float):Void

Available on unity

setColor(name:String, r:Float, g:Float, b:Float, a:Float):Void

Available on unity

setVec2(name:String, x:Float, y:Float):Void

Available on unity

setVec3(name:String, x:Float, y:Float, z:Float):Void

Available on unity

setVec4(name:String, x:Float, y:Float, z:Float, w:Float):Void

Available on unity

setFloatArray(name:String, array:Array<Float>):Void

Available on unity

setTexture(name:String, texture:Texture):Void

Available on unity

@:has_untypedsetMat4FromTransform(name:String, transform:Transform):Void

Available on unity