-
Notifications
You must be signed in to change notification settings - Fork 158
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.
-
tagcan be camera object (camHUD, camGame) or other objects.
Adds chromatic abberation effect to selected object (tag) with selected offset
-
tagcan be camera object (camHUD, camGame) or other objects.
Adds scanline effect to selected object (tag) with locked alpha (or no)
-
tagcan be camera object (camHUD, camGame) or other objects.
-
tagcan be camera object (camHUD, camGame) or other objects.
Adds tiltshift effect on selected object with selecter blur amount and center.
-
tagcan 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.)
-
tagcan 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.
-
tagcan be camera object (camHUD, camGame) or other objects.
Adds Pulse effect to selected tag with selected speed and other args.
-
tagcan be camera object (camHUD, camGame) or other objects.
Adds Distortion effect to selected tag with selected speed and other args.
-
tagcan be camera object (camHUD, camGame) or other objects.
Adds Color invert effect to selected tag.
-
tagcan be camera object (camHUD, camGame) or other objects.
Adds Greyscale effect to selected tag.
-
tagcan be camera object (camHUD, camGame) or other objects.
Adds Grayscale effect to selected tag.
-
tagcan be camera object (camHUD, camGame) or other objects.
Adds 3D effect to selected tag with selected args.
-
tagcan be camera object (camHUD, camGame) or other objects.
Adds Bloom effect to selected tag with selected blur size and intensity.
-
tagcan be camera object (camHUD, camGame) or other objects.
Clears effects from selecter object
-
tagcan be camera object (camHUD, camGame) or other objects.