RGSS Shader System
Author JoaoB ("João B" on Brazilian forums)
Release Date May 9th 2010
"A shader is a RGSS class with special methods used to apply pixel-level effects in bitmaps."
Sorry, but there's no way to hardware-accelerate this script (well, RGSS itself isn't hardware-accelerated). This script is slow, specially in RGSS2, but there are some uses.
- Easy shader creation using the def [tt]Shader::apply(x, y)[/tt]
- Customizable output width and height
- One can use another input bitmap
- One can define and use shader parameters
Click to view attachment
Well, the customization possibilities are almost infinite. I said "almost" because it depends on the bitmap size, shader complexity and other things. Attached is an HTML file with instruction.
It's compatible with any other script you post. In addiction, there's the def [tt]Bitmap::copy[/tt], which returns a copy of the bitmap, not the bitmap itself (yes, there are differences).
There are various effects you can achieve with this script; no number of screenshots can show all of them.
To install the script, copy the scripts Shader System and Custom Shader in that order.
To create and apply the shaders, see the attached HTML file.
Q: Does it work on RMVX?
A: Yes, it does, but it's much slower.
Terms and Conditions
Well, you can use it freely in your game, but please, give me credit if you use it and let me know if you post it in another forum.
The system was made by me, but the inspiration came from Adobe Pixel Bender.