Descriere:
✔️ Tutorial tested in 2020.3 and 2021.3 Have you ever wondered how lighting and shadows work in Unity? Or, do you want to write your own shaders for the Universal Render Pipeline, but without Shader Graph? Either because you need some special feature or just prefer writing code, this tutorial has you covered. In fact, this is the second part in a series about writing HLSL shaders for URP. In this video, I will show how to add lighting to a shader. This includes a simple explanation of shadow mapping - how objects cast and receive shadows in URP - as well as an introduction to keywords and shader variants - an important concept when writing shaders! Tutorial series: 📰 Article version ►https://nedmakesgames.medium.com/let-there-be-light-writing-unity-urp-shaders-with-code-part-2-112d370c2b75 🔀 Playlist ► https://www.youtube.com/playlist?list=PLAUha41PUKAYdsStTcjJbNV-GM3F2xm9s 1️⃣ The Graphics Pipeline ► https://www.youtube.com/watch?v=KVWsAL37NGw 2️⃣ Lighting and Shadows ► You're watching it! 3️⃣ Transparency ► https://www.youtube.com/watch?v=4zw6Vq5CzLY 4️⃣ PBR Materials ► https://www.youtube.com/watch?v=5GGISvt4KEA 5️⃣ Advanced Lighting ► Coming soon 6️⃣ Advanced URP Features ► Coming soon 7️⃣ Custom Lighting Models ► Coming soon 8️⃣ Vertex Animation ► Coming soon 9️⃣ Interacting with C# ► Coming soon 👑 Join my Patreon to access tutorials early, download project files, vote on future topics, and more! Thank you so much! ► https://www.patreon.com/nedmakesgames 🔗 Check out my website for a searchable list of tutorials! ► https://nedmakesgames.github.io/ 2️⃣ 2nd Channel ► https://www.youtube.com/nedmakesgames2 🔴 Twitch ► https://www.twitch.tv/nedmakesgames 🐦 Twitter ► https://twitter.com/nedmakesgames 🎮 Discord ► https://discord.com/invite/ubxSVBK 📸 Instagram ► https://www.facebook.com/unsupportedbrowser 👽 Reddit ► https://reddit.com/u/nedmakesgames 🎶 TikTok ► https://www.tiktok.com/@nedmakesgames ☕ Ko-fi ► https://ko-fi.com/nedmakesgames 📚 Reference scripts ► https://gist.github.com/NedMakesGames/0fc3cc299443d7efe81f25486c7178ec ⏲️ Timestamps: 0:00 Intro 1:10 Blinn-Phong 2:53 Hash-if statements 4:56 Albedo 5:20 Normals 8:26 Specular highlights 9:52 Keywords 10:43 Smoothness 11:45 Shadow mapping 13:58 Shadowcoords 14:30 Multi compiles 15:58 Cascades and soft shadows 18:17 The frame debugger 19:32 The shadow caster pass 21:35 The depth buffer 22:37 Shadow acne 25:12 ColorMask 25:40 Wrap up and credits 🎖️ Credits, references and further reading: • Unity Technologies: Shader Calibration Scene - https://assetstore.unity.com/packages/templates/tutorials/shader-calibration-scene-25422 • Martijn Vaes: DAE — Bilora Bella 46 Camera — Game Ready Asset - https://sketchfab.com/3d-models/dae-bilora-bella-46-camera-game-ready-asset-eeb9d9f0627f4783b5d16a8732f0d1a4 • tonyflanagan: Thailand Girl — Animated - https://sketchfab.com/3d-models/thailand-girl-animated-a41f779fe45b4a04bdbf212e49b7f6b5 • Aleksei Vlasov ⚡ CRWDE: Phonograph - https://sketchfab.com/3d-models/phonograph-1503329e69034a0fbb360504a1c4fba9 • gugusheep: VR Showroom Gallery for product placement - https://sketchfab.com/3d-models/vr-showroom-gallery-for-product-placement-vol-1-d8f967fb44ea46cb9b62e720c6485ac0 • Andreas Mischok: Drackenstein Quarry - https://polyhaven.com/a/drackenstein_quarry Music provided by Epidemic Sound
Pregătim opțiunile de descărcare
Site-ul http://unidownloader.com/ este cel mai bun mod de a descărca un videoclip sau o piesă audio separată, dacă doriți să faceți acest lucru fără a instala programe și extensii.
Extensia UDL Helper este un buton convenabil care este integrat perfect în site-urile YouTube, Instagram și OK.ru pentru descărcarea rapidă a conținutului.
Programul UDL Client (pentru Windows) este cea mai puternică soluție care suportă peste 900 de site-uri web, rețele sociale și site-uri de găzduire video, precum și orice calitate video care este disponibilă în sursă.
UDL Lite este o modalitate foarte convenabilă de a accesa un site web de pe dispozitivul mobil. Cu ajutorul său, puteți descărca cu ușurință videoclipuri direct pe smartphone.
Cele mai bune formate de calitate sunt FullHD (1080p), 2K (1440p), 4K (2160p) și 8K (4320p). Cu cât rezoluția ecranului dvs. este mai mare, cu atât mai mare ar trebui să fie calitatea video. Cu toate acestea, există și alți factori de luat în considerare: viteza de descărcare, cantitatea de spațiu liber și performanța dispozitivului în timpul redării.
Browserul/computerul nu ar trebui să se blocheze complet! Dacă se întâmplă acest lucru, vă rugăm să raportați acest lucru cu un link către videoclip. Uneori, videoclipurile nu pot fi descărcate direct într-un format adecvat, așa că am adăugat posibilitatea de a converti fișierul în formatul dorit. În unele cazuri, acest proces poate utiliza în mod activ resursele computerului.
Puteți descărca un videoclip pe smartphone-ul dvs. utilizând site-ul web sau aplicația PWA UDL Lite. De asemenea, este posibil să trimiteți un link de descărcare prin cod QR folosind extensia UDL Helper.
Cea mai convenabilă modalitate este să utilizați programul UDL Client, care acceptă conversia videoclipurilor în format MP3. În unele cazuri, MP3 poate fi descărcat și prin intermediul extensiei UDL Helper.
Această funcție este disponibilă în extensia UDL Helper. Asigurați-vă că "Show the video snapshot button" (Afișați butonul de instantaneu video) este bifat în setări. O pictogramă a camerei ar trebui să apară în colțul din dreapta jos al playerului, în stânga pictogramei "Setări". Atunci când faceți clic pe ea, cadrul curent din videoclip va fi salvat pe computer în format JPEG.
Nu costă nimic. Serviciile noastre sunt absolut gratuite pentru toți utilizatorii. Nu există abonamente PRO, nu există restricții privind numărul sau lungimea maximă a videoclipurilor descărcate.