This is OpenGL GLSL shaders acting as a post-processing effect for RPG Maker bitmaps.
The @sprite1 bitmap of scene_title here is ran through this fragment shader on launch:
I've been looking around and it seems no-one is interested in 3d/post-processing shaders in their RM games these days (I guess engines like Unity make it easy to do these effects so people are going there now), therefore I am calling it a day and leaving it at that. Can't for the life of me figure out how to get the back buffer copied from the game into the shaders, so it's stuck as a bitmap post-processor anyway.
Anyone know how to get the game screen as a bitmap? Perhaps the fully composited map bitmap?
EDIT: Ah, figured out how to get the game screen buffer
That is a real-time shader running at 60fps
The @sprite1 bitmap of scene_title here is ran through this fragment shader on launch:
C:
<div class="c" id="{CB}" style="font-family: monospace;"><ol><span style="color: #339933;">#version 130
in vec2 st;
out vec4 frag_colour;
uniform sampler2D basic_texture;
<span style="color: #993333;">void main () {
vec3 colour;
colour = texture( basic_texture, st ).<span style="color: #202020;">rgb;
colour = mix( colour, <span style="color: #cc66cc;">1.0 - colour, st.<span style="color: #202020;">s );
frag_colour = vec4( colour.<span style="color: #202020;">rgb, <span style="color: #cc66cc;">1.0 );
}
I've been looking around and it seems no-one is interested in 3d/post-processing shaders in their RM games these days (I guess engines like Unity make it easy to do these effects so people are going there now), therefore I am calling it a day and leaving it at that. Can't for the life of me figure out how to get the back buffer copied from the game into the shaders, so it's stuck as a bitmap post-processor anyway.
Anyone know how to get the game screen as a bitmap? Perhaps the fully composited map bitmap?
EDIT: Ah, figured out how to get the game screen buffer
That is a real-time shader running at 60fps