Logo video2dn
  • Сохранить видео с ютуба
  • Категории
    • Музыка
    • Кино и Анимация
    • Автомобили
    • Животные
    • Спорт
    • Путешествия
    • Игры
    • Люди и Блоги
    • Юмор
    • Развлечения
    • Новости и Политика
    • Howto и Стиль
    • Diy своими руками
    • Образование
    • Наука и Технологии
    • Некоммерческие Организации
  • О сайте

Скачать или смотреть Writing Unity Shaders Using Depth Textures

  • Benjamin Swee - Custom Unity Shaders
  • 2022-04-18
  • 13535
Writing Unity Shaders Using Depth Textures
UnityUnity3dshadersshader3dcodecelshadingtoon shadercel shadercghlslprogrammingvertfragvertexfragmentpixel2dphysicstutorialgamesdevelopmentben sweesweematerialgraphicsrenderingrendering engineertech arttechnical artistgputrainingrealtimeshader from scratchnormalstangents3d modelingwhat are shaderstheory and applicationgpu explainedintro to shadersunity shadersunity materialsdepth mapdepth texture
  • ok logo

Скачать Writing Unity Shaders Using Depth Textures бесплатно в качестве 4к (2к / 1080p)

У нас вы можете скачать бесплатно Writing Unity Shaders Using Depth Textures или посмотреть видео с ютуба в максимальном доступном качестве.

Для скачивания выберите вариант из формы ниже:

  • Информация по загрузке:

Cкачать музыку Writing Unity Shaders Using Depth Textures бесплатно в формате MP3:

Если иконки загрузки не отобразились, ПОЖАЛУЙСТА, НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если у вас возникли трудности с загрузкой, пожалуйста, свяжитесь с нами по контактам, указанным в нижней части страницы.
Спасибо за использование сервиса video2dn.com

Описание к видео Writing Unity Shaders Using Depth Textures

If you want to support my Patreon: https://patreon.com/user?u=92850367

Writing Unity Shaders Using Depth Textures
Udemy Course: https://www.udemy.com/course/unity-sh...

Today I'll be doing this effect that uses the depth texture to create this inverse world like effect

This is the math and code to create the rotational effect

float2 textureCoordinate = i.screenPosition.xy / i.screenPosition.w;
float r = dot(i.viewDir, normalize(i.normal)) * 2 + _Time.y;
float g = (atan2(i.normal.y, i.normal.x) / 2 * UNITY_PI ) + 0.5 + _Time.y;
fixed4 col = tex2D(_MainTex, float2(r,g));
float depth = Linear01Depth(SAMPLE_DEPTH_TEXTURE(_CameraDepthTexture, textureCoordinate));
float3 color = lerp(_ColorOne, _ColorTwo, depth);
float fresnel = pow(dot(i.viewDir, normalize(i.normal) ),0.3);
return fixed4(pow(color * fresnel,2)*2 + col * (1-fresnel) * 2,1);

Ben here, and I've been writing shaders and full systems of shaders in Unity from scratch for 6-7 years now. Shaders, especially HLSL or CG shaders seem to be less known in Unity, so I just wanted to do my part, share my experiences and really show others how to write shader code.

The goal is to teach others how to write optimal shader code that is production-ready. I also want to try to recreate the cool-looking effects we see in other games. It would be awesome to see more and more people write shaders from scratch, understand it at a deeper level and ultimately create their own shaders.

Content of this video
0:00 - Intro & Setup
1:37 - Screen Space UVs
3:41 - Depth texture
5:40 - Decode it
8:00 - Color it
9:10 - Fresnel

#unity3d #unitydeveloper #gamedev #shaders

For more in-depth access I do have a Udemy course that I will continue to update as I create more mini-lessons.

https://www.udemy.com/course/unity-sh...

Комментарии

Информация по комментариям в разработке

Похожие видео

  • О нас
  • Контакты
  • Отказ от ответственности - Disclaimer
  • Условия использования сайта - TOS
  • Политика конфиденциальности

video2dn Copyright © 2023 - 2025

Контакты для правообладателей [email protected]