-
Notifications
You must be signed in to change notification settings - Fork 162
OS Engine Lua Script API: Shaders
We brought back shaders from older versions of Psych Engine. So you can add some shaders to sprites by using luas. If you can't understand this, check source code. NOTE: I'm lazy to write actually good wiki, so it'll be better if you'll check source code for functions instead of browsing wikis.
Spawns lua shader sprite with selected shader and tag.
-
tag
can be camera object (camHUD, camGame) or other objects.
Adds chromatic abberation effect to selected object (tag) with selected offset
-
tag
can be camera object (camHUD, camGame) or other objects.
Adds scanline effect to selected object (tag) with locked alpha (or no)
-
tag
can be camera object (camHUD, camGame) or other objects.
-
tag
can be camera object (camHUD, camGame) or other objects.
Adds tiltshift effect on selected object with selecter blur amount and center.
-
tag
can be camera object (camHUD, camGame) or other objects.
addVCREffect(tag:String,glitchFactor:Float = 0.0,distortion:Bool=true,perspectiveOn:Bool=true,vignetteMoving:Bool=true)
Adds VCR effect to selected object (old TVs vibes.)
-
tag
can be camera object (camHUD, camGame) or other objects.
Creates shader with selected name.
Sets selected shaders to camera.
Clears shaders from selected camera.
Adds Glitch effect to selected tag with selected speed and other args.
-
tag
can be camera object (camHUD, camGame) or other objects.
Adds Pulse effect to selected tag with selected speed and other args.
-
tag
can be camera object (camHUD, camGame) or other objects.
Adds Distortion effect to selected tag with selected speed and other args.
-
tag
can be camera object (camHUD, camGame) or other objects.
Adds Color invert effect to selected tag.
-
tag
can be camera object (camHUD, camGame) or other objects.
Adds Greyscale effect to selected tag.
-
tag
can be camera object (camHUD, camGame) or other objects.
Adds Grayscale effect to selected tag.
-
tag
can be camera object (camHUD, camGame) or other objects.
Adds 3D effect to selected tag with selected args.
-
tag
can be camera object (camHUD, camGame) or other objects.
Adds Bloom effect to selected tag with selected blur size and intensity.
-
tag
can be camera object (camHUD, camGame) or other objects.
Clears effects from selecter object
-
tag
can be camera object (camHUD, camGame) or other objects.