说明:
✔️ Works in 2020.1 ➕ 2020.2 ➕ 2020.3 🩹 Fixes: ► Make sure your source mesh has read/write enabled in it's asset importer inspector. Compute Shaders are scripts that run on the GPU! They're very powerful, allowing you to leverage the GPU's unique abilities and generate meshes to draw procedurally. There's not a lot of information on using them, so I hope to demystify them and add another wrench to your game development toolbox. Specifically, I convert a geometry shader to a compute shader, increasing compatibility and efficiency. 👋 Subscribe for weekly game development videos! https://www.youtube.com/c/nedmakesgames?sub_confirmation=1 👑 Join my Patreon for extra influence over topics, early access to videos, and downloadable project files! ► https://patreon.com/nedmakesgames 🔗 Check out my website for a searchable list of tutorials! ► https://nedmakesgames.github.io 🔴 Twitch ► https://www.twitch.tv/nedmakesgames 🐦 Twitter ► https://twitter.com/nedmakesgames 🎮 Discord ► https://discordapp.com/invite/ubxSVBK 📸 Instagram ► https://instagram.com/nedmakesgames 👽 Reddit ► https://reddit.com/u/nedmakesgames 🎶 TikTok ► https://www.tiktok.com/@nedmakesgames ☕ Ko-fi ► https://ko-fi.com/nedmakesgames 🎬 Previous videos ► Introduction to graphics shaders: https://youtu.be/7C-mA08mp8o ✨Follow up videos ► Using compute shaders to generate meshes: https://youtu.be/AiWCPiGr10o ► Layered grass: https://youtu.be/c1JThTu6-Ok ► Procedural blade grass: https://youtu.be/DeATXF4Szqo 📜 Required scripts ► NMGPyramidComputeHelpers.hlsl: https://gist.github.com/NedMakesGames/a7f200245e2bb5095e21e9b3ce6a1f86 ► NMGPyramidGraphicsHelpers.hlsl: https://gist.github.com/NedMakesGames/0c6d8c3f0d983887c3c3f08b7fe7ebb9 📚 Reference scripts ► PyramidFaces.compute: https://gist.github.com/NedMakesGames/fbea5caa8a4f4475cb3f6f1b8358fca1 ► PyramidFaces.shader: https://gist.github.com/NedMakesGames/902f619471a35b4368aa59cff5659b8a ► PyramidFaces.hlsl: https://gist.github.com/NedMakesGames/232d5eb58f55c3341a860b63d8fcd976 ► ProceduralPyramidRenderer.cs: https://gist.github.com/NedMakesGames/c14853ae86c43e86a70bb16dbf46ffe9 ► TriCountToVertCount.compute: https://gist.github.com/NedMakesGames/4342891e191064217cc80fd2e95fc531 ⏲️ Timestamps: 0:00 Intro 1:02 Theory 3:00 The compute shader 7:00 The graphics shader 9:42 The C# renderer 16:11 Fixing vertex count 17:42 Wrap up and credits 🎖️ Credits and references: • Documentation: Unity Technologies - https://docs.unity3d.com/ScriptReference/Graphics.DrawProceduralIndirect.html • Noise Ball: Keijiro Takahashi - https://github.com/keijiro/NoiseBall2 • URP Lens Flares: Sam Driver - https://github.com/Anatta336/bright-spots • Compute Shader: TotallyRonja - https://www.ronja-tutorials.com/2020/07/26/compute-shader.html • MarchingCubesGPU: DuncanF - https://gist.github.com/DuncanF/353509dd397ea5f292fa52d1b9b5133d • TransformBounds: benblo - https://answers.unity.com/questions/361275/cant-convert-bounds-from-world-coordinates-to-loca.html • Paper texture: freepik - https://www.freepik.com/premium-vector/wrinkled-paper-texture_711440.htm • Music: sawquerenoise "RottenMage SpaceJacked OST" - https://freemusicarchive.org/music/sawsquarenoise/RottenMage_SpaceJacked • Compute Shaders: Jasper Flick- https://catlikecoding.com/unity/tutorials/basics/compute-shaders/ • Binary sphere: Openclipart - https://publicdomainvectors.org/en/free-clipart/Binary-sphere/75700.html #GameDev #IndieDev #Unity
准备下载方式
http://unidownloader.com 网站是单独下载视频或音轨的最佳方式。如果您想避免安装程序和扩展。
UDL Helper 扩展是一个方便的按钮,嵌入YouTube、Instagram和OK.ru网站,用于快速下载内容。
UDL Client(适用于 Windows)支持900多个网站、社交网络和视频托管网站的最强大解决方案。包括源中可用的任何视频质量。
UDL Lite–从移动设备访问网站的便捷方式。借助此功能,您可以将视频直接下载到智能手机上。
最佳质量格式为全高清(1080p)、2K(1440p)、4K(2160p)和8K(4320p)。屏幕分辨率越高,视频质量也越高。然而,还有其他因素需要考虑:下载速度、可用空间和设备性能。
浏览器/电脑不应完全冻结!如果发生这种情况,请通过视频链接进行报告。有时视频无法以合适的格式直接下载,因此我们增加了将文件转换为所需格式的功能。在某些情况下,此过程可能会主动使用计算机资源。
您可以使用网站或pwa应用程序 UDL Lite 将视频下载到智能手机上。也可以使用 UDL Helper 扩展通过二维码发送下载链接。
最方便的方法是使用UDL Client 程序,该程序支持将视频转换为MP3格式。在某些情况下,MP3 也可以通过 UDL Helper 扩展下载。
此功能在 UDL Helper 扩展中可用。确保在设置中选中“显示视频快照按钮”。相机图标应出现在播放器的右下角“设置”图标的左侧。单击它时,视频中的当前帧将以 JPEG 格式保存到您的计算机中。
完全不要花钱。我们的服务对所有用户都是绝对免费的。没有PRO订阅,下载视频的数量或最大长度没有限制。