Godot Engine
Fisheye Distortion Vertex Shader
3
   
Нагородити
До улюбленого
В улюблених
Прибрати
Завантажити
"Made a vertex shader capable of achieving a fisheye lens effect (Inspired by Hyper Demon). My previous way of doing this required a cubemap of cameras and had quite a lot of overhead. This experiment only requires one camera and is fast but may end up being more limited. We'll see."
Коментарів: 2
Cobalt_Afterlife  [автор] 13 лют. 2024 о 20:31 
Panini just doesn't have the look that I want. I very much like the spherical fisheye look. In terms of "quality", it can be kind of tricky because I'm doing all of this in the vertex shader and I have to clip some verts that would stretch around the sides of the screen. I have a plan for ways to improve but since I'm pretty new to vertex shaders in general it might take some trying and failing until I get the look I want. I made a similar fisheye effect a few months ago that uses the fragment shader to manipulate the image in screen space. That one looks much better and fills the entire screen since its easy to do over-rendering without worrying about vertices stretching in weird ways.
GARLIC OF DOGS 13 лют. 2024 о 15:39 
The Panini Projection effect is very similar to what you are doing. This may help with the FOV quality.