How To Create a Water Depth Effect // Godot 4 3D Shader Tutorial
Автор: StayAtHomeDev
Загружено: 2024-09-27
Просмотров: 13068
Описание:
In this Godot 4 shader tutorial, we're learning how to create a depth effect in our water shader using the DEPTH and SCREEN textures.
-----------------------------------------------------------------------------------
MISSING LINES FOR SAMPLING TEXTURES
// Get Depth and Screen Textures
float depth = textureLod(depth_texture, SCREEN_UV, 0.0).r;
vec3 screen = textureLod(screen_texture, SCREEN_UV, 0.0).rgb;
-----------------------------------------------------------------------------------
🔥 GET THE SOURCE FILES ►► https://www.stayathomedev.com/get-the...
👉🏼 CHECK OUT MY GODOT 4 FPS TUTORIAL SERIES ►► • The Godot FPS Project
👉🏼 CHECK OUT MY GODOT 4 UI TUTORIAL SERIES ►► • Godot User Interface Tutorials
-----------------------------------------------------------------------------------
0:00 - Introduction and Overview
0:17 - Why DEPTH and SCREEN textures
0:43 - Adding New Uniforms and Textures
1:29 - Sampling the Textures and Beer's Law
2:17 - Lerp Color With DEPTH and SCREEN
2:43 - Final Result
3:00 - Get the Source Files
-----------------------------------------------------------------------------------
This series is part of my sponsored Godot shader tutorial videos where we'll create shaders step by step. I won't be skipping any steps in the process and everything will be sequential video to video.
early access to tutorial videos
power to vote on what mechanics get covered in future videos
full access to the project source files to use in your own projects
-----------------------------------------------------------------------------------
STAYATHOMEDEV ►► https://stayathomedev.com
TWITTER ►► / stayathomedev
BLUESKY ►► https://bsky.app/profile/stayathomede...
MY GODOT ASSETS ►► https://stayathomedev.itch.io/
#godot #godotengine #shaders
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: