Lua Shaders - te-agma-at/FNF-PsychEngine GitHub Wiki
Functions
createShader(tag:String, isWiggleEffect:Bool, wiggleType:WiggleEffectType = DREAMY, blendingType:String, color:Dynamic) -- tag is the tag of the shader, isWiggleEffect defines if the shader is a WiggleEffect or not, sets the WiggleEffectType if it is a WiggleEffect (DREAMY by default), blendingType defines the blending type of the shader, color is color of the shader (in hex, hsv, rgb, or otherwise)
addShader(tag:String) -- adds a shader
addShaderToCamera(tag:String, camera:String) -- adds a shader to a specific camera (either 'game', 'hud', or 'other'
addShaderToObject(tag:String, object:FlxObject) -- adds a shader to a specific object or sprite
changeShaderBlending(blendingType:String) -- changes the blending type of a shader
changeWiggleType(tag:string, wiggleType:WiggleEffectType) -- changes the wiggle effect type of a shader
changeShaderColor(tag:string, color:Dynamic) -- changes the color of a shader
getShaderProperty(tag:string, property:Dynamic) -- gets a property of a shader built using createShader
Variables
variables of a shader can be get using getShaderProperty()