Ưu đãi trong tuần: Nhập mã UD50 giảm 50k cho đơn từ 300k!
Trang chủ
Menu

Learn to Write Unity Compute Shaders

Học cách viết Compute Shader trong Unity

Học cách viết Compute Shader trong Unity

Khai thác sức mạnh của GPU

4.6
(475 đánh giá)
5,514 học viên
Giảng viên
Penny de Byl
Phụ đề Việt chất lượng cao Phụ đề tiếng Anh Bán chạy Đánh giá cao
50.000đ 579.000đ -91%
✓ Xem giỏ hàng và thanh toán
Bao gồm phụ đề tiếng Việt, tiếng Anh
6.0 giờ video
51 bài giảng
7 bài quiz
Truy cập vĩnh viễn
Học trên mọi thiết bị
Cập nhật: 30/05/2026

Bạn sẽ học được gì

Cách viết Compute Shader trong Unity
Cách sử dụng Compute Shader trong bộ lọc xử lý hậu kỳ hình ảnh
Cách sử dụng Compute Shader cho hiệu ứng hạt và mô phỏng bầy đàn
Cách dùng StructuredBuffers để chia sẻ dữ liệu giữa Compute Shader và Surface Shader dùng instancing
Sử dụng Compute Shader để xử lý mô phỏng chất lỏng
Sử dụng Compute Shader để tạo một engine Vật lý

Yêu cầu

Bạn cần quen thuộc với kiến thức cơ bản về Unity
Bạn cần có kiến thức cơ bản về C#

Đối tượng phù hợp

Dành cho lập trình viên muốn bổ sung compute shader vào kỹ năng của mình
Dành cho lập trình viên muốn sử dụng GPU để tránh tắc nghẽn xử lý trong game
Dành cho lập trình viên tò mò về các kỹ thuật hiện đại: mô phỏng bầy đàn, vật lý GPU, cỏ, dò tia và chất lỏng

Nội dung khóa học

8 phần • 50 bài giảng
1 Liên hệ với H3D
2 Câu hỏi thường gặp
3 Chào mừng đến với khóa học
4 Compute shader đầu tiên của bạn
5 Xem lại compute shader đầu tiên
6 Nhiều Kernel
7 Thử thách: Dùng compute shader vẽ một hình vuông ở giữa một Quad
1 Truyền dữ liệu vào shader
2 Sức mạnh của buffers
3 Các ngôi sao quay quanh quỹ đạo
4 Sử dụng nhiễu (noise) trong shader
5 Biến dạng lưới (Mesh)
6 Thử thách: Vẽ một đa giác được lấp đầy bằng nhiễu
1 Thiết lập pipeline render
2 Hiệu ứng làm mờ đơn giản
3 Thấu kính tầm nhìn đêm
4 Lớp phủ HUD - phần 1
5 Lớp phủ HUD - phần 2
6 Hiệu ứng tỏa sáng sao: vertex-fragment shaders - phần 1
7 Hiệu ứng tỏa sáng sao: vertex-fragment shaders - phần 2
8 Thử thách: Tạo hiệu ứng sepia cho đầu ra render
1 Thiết lập hiệu ứng hạt dựa trên buffer
2 Thêm mesh vào mỗi hạt
3 Ví dụ mô phỏng bầy đàn đơn giản
4 Sử dụng mesh instanced trong bầy đàn
5 Sử dụng skinned mesh trong bầy đàn
6 Thử thách: Vẫy cái đuôi đó
1 Bắt đầu đơn giản, những quả bóng nảy
2 Một chút lý thuyết
3 Khởi tạo dữ liệu
4 Compute Shader Vật lý GPU - phần 1
5 Compute Shader Vật lý GPU - phần 2
6 Voxel hóa một mesh
7 Thử thách: Những quân cờ đang đổ
1 Dùng Blender tạo một cụm cỏ đơn lẻ
2 Dùng instancing để phủ cỏ lên một bề mặt
3 Uốn cong những ngọn cỏ
4 Cỏ trên bề mặt không bằng phẳng
5 Dẫm lên cỏ
6 Thử thách: Dùng nhiễu để uốn cong các cụm cỏ
1 Navier-Stokes: Nền tảng nổi tiếng cho mô phỏng chất lỏng
2 StableFluids
3 StableFluids - phần 2
4 Smoothed Particle Hydrodynamics
5 Position Based Dynamics
6 Thử thách: Khói sử dụng StableFluids
1 Hàm đa giác
2 Ghi công
3 Bài giảng bổ sung
4 Tiếp theo là gì?

Giới thiệu khóa học

By learning to create Compute Shaders, you will put yourself at the cutting edge of Unity development. Unlike a traditional shader, you can use a Compute Shader to handle any data manipulation problem, where having dozens (or even hundreds) of threads running simultaneously causing a bottleneck in your game to run many, many times faster. In this course you will start from small steps, learning the basics of compute shaders. First, we look at passing data from the CPU to the GPU using buffers. Then we’ll look at using these buffers in our calculations. Once you have this initial grounding, you learn how to use these techniques to create blisteringly-fast post-processing filters. You can use Compute Shaders to handle particle effects and flocking calculations. In the course, you'll create a flock of thousands of birds where each bird flaps its wings in sync with its speed through the air. Divide and conquer is the way, with Compute Shaders. By using hundreds of threads running simultaneously, we develop a GPU Physics engine that can handle thousands of tumbling chess pieces. Compute Shaders are ideal for handling the orientation of grass blades as an avatar moves through grass. The challenging subject of fluids (both 2D and 3D) are covered in the course and you'll see how much this computationally-intensive field benefits from Compute Shaders.

The resources for the course are presented as a code-along version and a complete version and include over 30 different examples. Unity Compute Shaders provides the ideal platform to learn how to handle complex problems in your games. Flocking calculations using the 3 key rules of Separation, Cohesion, and Alignment are covered in detail. The physics calculations to handle fast collision detection and the forces involved are included (both theoretically and practically). Smoothed Particle Hydrodynamics is a technique for calculating fluid simulations. We'll take you through it from the foundation level.

If you're working with Unity, you need to understand how to use Compute Shaders to ensure your game has the best performance. After all, why let the GPU sit idle while the CPU is working overtime? You'll see massive performance improvements if you switch some tasks to the GPU and handle them with a Compute Shader.

This course uses Unity 2019.4 and is Windows and Mac compatible.

Student feedback

"This course is simply amazing. I always wanted to learn those topics and finally got some incredible resources. Thank you a lot. Btw I loved the didactic. The default scenes and challenges are really helping me to stick with the course without getting frustrated. The topics covered are very difficult but you made it in a way where we can really get step by step and at the same time seeing incredible things on screen!"
"This course is an intensive, well explained, understanding on how compute shaders work, impressive results and explanations"
"Amazing course - followed up Penny De Byls CG Shader course with this one and they dovetail excellently. Nicholas does a great job with some interesting projects and great concepts - loved the section on fluid simulation."
"I have just started the Compute Shaders course from Holistic 3D. Loving the course, and I am finding it super easy to understand! Been looking for a decent tutorial for ages, and this is definitely the one I have been looking for!"
"Great tutorial, knowledge is condensed and easy to acquire. I always wanted to learn programming shaders and GPU computing, so this course is something that fits my needs perfectly!"
"This course excels at filling in the blanks from my self-taught knowledge and understanding of compute shaders. The explanations are concise yet full, all the while aiding the connection of the basics to form a solid foundation!"

"Course is super informative with great pacing (on the fast side) and plenty of challenges along the way. The challenges are why I am giving the 5-star rating. These tend to require some thought, but are solvable using what we have learned, and for my taste, just the right level of difficulty."

"This course is absolutely a must for any 3D graphics developer. It is the best resource I have seen online without a doubt. Nicholas is an amazing instructor and he is able to explain really complicated concepts such as Navier-Stokes equations is very simple terms. I would give 10 stars it if was possible. Way beyond my expectations and I will watch it again several times as references. Thank you Mr. Lever for your outstanding work in teaching incredible content with very accessible language. Please more physics simulation :)"

"This is absolutely worth your time and money if you want to learn about compute shaders.  Nik Lever takes the time to explain the relevant code line by line and is clearly knowledgeable about the subject. His jovial British spirit will encourage even the most jaded souls to hone their knowledge as he presents coding challenges that grow incrementally in complexity as the course progresses. Will be checking out whatever course he creates next."

"I have been struggling with a bottleneck in my project and learning about compute shaders gave me a whole new perspective. The instructor knows what he's talking about. This is a very good course on the subject."


What others are saying about Nik's courses:

  • Very rich content and impressive didactics. Very good to learn from someone who has mastered the subject and knows how to teach.

  • Nik's style of teaching made me understand everything very intuitively and I'm so comfortable with shaders now.

  • I like Nik's courses, I understand in the way he explains. Great content.

Khóa học liên quan

Khám phá thêm các khoá học cùng chủ đề

Hiển thị tất cả khoá học Game Development
Hiển thị tất cả khoá học Graphics Programming
Hiển thị tất cả khoá học Shader Programming
Hiển thị tất cả khoá học Unity
Zalo
Tôi có thể tư vấn khoá học cho bạn 😊