Тёмный

Use Depth Mask to Hide Objects in Unity - URP & Built-in 

Game Dev Box
Подписаться 3,8 тыс.
Просмотров 3,5 тыс.
50% 1

How can you safely place your boats in the water without allowing any water to seep in? Watch this video!
This shader draws faces that are invisible, but which still appear in the depth buffer. This allows you to prevent objects from being drawn where they are occluded by the mask.
➡️Bridges Pack: assetstore.uni...
➡️DepthMask Wiki : web.archive.or...
➡️Z-buffering: web.archive.or...
🎵Music future bass trap: pixabay.com/mu...
🔥Null Testing - Unity Performance Tip - Optimization: • Null Testing - Unity P...
🔥Simple Trajectory Prediction 3D/2D Unity - Without LineRenderer - Perspective and Orthographic: • Simple Trajectory Pred...
🔥Flora Assets Review - Ultimate Vegetation Solution for Unity - Render millions of instances: • Flora Assets Review - ...
🔥Setup Local Volumetric Fog In Unity HDRP: • Setup Local Volumetric...
🔥Create Simple Fur for your Animals - Unity HDRP (URP - Built-in Amplify Shader): • Create Simple Fur for ...
🔥Dots Grid - 3D Grid And Mesh Space - Unity Visual Effect Graph: • Dots Grid - 3D Grid An...
🔥Custom LOD Cross Fade Dithering Unity3D All Pipelines - Shader Graph And Amplify Shader + Speed Tree: • Custom LOD Cross Fade ...
• Don't Forget to Subscribe:
/ @gamedevbox
If you have any questions post them in the comments and I'll do my best to answer them 🙌
#gamedevbox #Unity #gamedevelopment

Опубликовано:

 

1 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 6   
@GameDevBox
@GameDevBox 7 месяцев назад
Hey guys sorry the video is a little fast didn't realize it until now :), you can change the Playback Speed. Also, this is shader Code (you can SetRenderQueue.cs here : web.archive.org/web/20210831213650/wiki.unity3d.com:80/index.php/DepthMask) Shader "Masked/Mask" { SubShader { // Render the mask after regular geometry, but before masked geometry and // transparent things. Tags {"Queue" = "Geometry+10" } // Don't draw in the RGBA channels; just the depth buffer ColorMask 0 ZWrite On // Do nothing specific in the pass: Pass {} } } 🔥Dots Grid - 3D Grid And Mesh Space - Unity Visual Effect Graph: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-eAK6Vye33FI.html 🔥Simple Trajectory Prediction 3D/2D Unity - Without LineRenderer - Perspective and Orthographic: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-sDFCHTIdSIw.html 🔥Create Simple Fur for your Animals - Unity HDRP (URP - Built-in Amplify Shader):ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-ITfgsxogBfE.html
@Soundy777
@Soundy777 7 месяцев назад
Thanks for hooking us up
@Soundy777
@Soundy777 7 месяцев назад
Clever & Succinct! Can't wait for more!
@GameDevBox
@GameDevBox 7 месяцев назад
Thanks Glad it helped 🤍
@tongzhouyu5747
@tongzhouyu5747 7 месяцев назад
I get a shimmering ghosting effect in URP? I think it was caused by the camera render setting from dither to forward. But the problem still exist. Any idea?
@GameDevBox
@GameDevBox 7 месяцев назад
it's a little strange, the best setup is to use a custom model and hide the part you want but I did the same for URP and didn't get the ghosting effect. if I find out more about it I will let you know! Thanks for watching.
Далее
I Made the Same Game in 8 Engines
12:34
Просмотров 4,1 млн
Why Solo Developers Should Use Unreal
9:51
Просмотров 387 тыс.
Ко мне подкатил бармен
00:58
Просмотров 204 тыс.
Why Do Video Game Studios Avoid Blender?
6:49
Просмотров 600 тыс.
choosing a game engine is easy, actually
15:08
Просмотров 504 тыс.
10 Minutes vs. 10 Years of Animation
19:29
Просмотров 1 млн
I Paid Fiverr Game Developers to Make the Same Game
10:25
Mirrors, Every Way You Can Make Them In A Video Game
8:14
I Oversimplified Famous Games
12:41
Просмотров 19 тыс.
The Most Impressive Scratch Projects
11:00
Просмотров 4,9 млн