I'm trying to make a motion blur shader similar to the ones on the PS2 is there a way to get the previous frames in Godot shaders
I need help making a motion blur shader
- Edited
- Best Answerset by The_Grass_man
You can get a previous frame from the viewport in shaderlang via screen texture. Outside of that I think you'd need to create image texture buffer for an accumulation buffer and get viewport data for previous frame via script to add to the accumulation buffer.
I'm not aware of godot having motion vectors or such in the renderer. I could be wrong tho. You should also check if godotshaders.com doesn't have any motion blur shaders already.
Megalomaniak Thank you I found a shader with what I was looking for on Godot shaders I'm now modifying it to suit my needs