Heat distortion effect | Godot

Published: 14 April 2024
on channel: Octodemy
1,533
65

How to make a simple heat distortion shader effect with screen space textures and how to use an advanced shader trick with sub-viewport to fix some common problems, such as how to fix bleeding borders of objects in the front while distorting things behind.

The last part of the video shows how to use sub-viewport textures inside the game and how to fix the colors that are influenced by your environment settings like tonemapping and fog.
To fix the viewport texture you need to:
Enable 2D HDR for the subviewport
Set the subviewport camera environment color to linear color space
Disable lights and fog inside the shader flags.

The subviewport shader trick is very expensive performance wise and might not be a good idea to use depending on the type of game. But I still think the way on how to fix the sub-viewport problems and use them in shader were interesting enough that you can take things in the last part of the video to do other things.


····················································································
Want to support me?
https://ko-fi.com/octodemy
  / octodemy  
····················································································

#godot4 #godot #godotengine #shaders #gdshader

CHAPTERS:
0:00 Intro
0:11 Distortion shader
4:17 Problem
4:48 Sub-viewport shader trick




----personal notes
I think I'm getting more comfortable recording voices now.
I still have a problem where I start recording things very 'emotionless', and then it improves. The very first sentence here is a good example of that.

I realized that I make things go wrong first, and then fix them and explain why that happened.... which might not be a very good idea for videos where you just want to see the thing done, or skips sections of the video.

Also, the pacing of the video is still not quite right, I have a strong resistance to have more the 1s of silence. And because of that, most of the time the recordings are speed up 2x.


Watch video Heat distortion effect | Godot online without registration, duration hours minute second in high quality. This video was added by user Octodemy 14 April 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 1,533 once and liked it 65 people.