
How my Shaders Combine Indirect Rendering and Per-Instance Properties from Burst-Compiled Jobs
We conclude the rendering miniseries by digging into the shader code to see what we need to do to have our shaders consume all of this data and render everything correctly. We will focus on the parts of the shaders that use the indirect data and apply the per-instance specifications, rather than the entirety of the shaders, since I’m sure you have other plans for today as well!
In the last video we saw how we use Graphics.RenderMeshIndirect to send the draw calls to the GPU after the data has been prepared in burst-compiled Jobs. Included in this data are three buffers that are important to our shaders that accompany this call. The first two buffers provide the shader with the index and transformation matrix of each object to be rendered. We fill the buffers with the matrices in view as previously determined, and their indices, and then send them to the material of the render parameters. In order for the shader of the material to have access to this data, we need to perform some indirect rendering setup in the shader.
Our third and final buffer contains the instance properties. As we’ve seen during the last video, this buffer is also sent to the material of the render parameters.
This is the story of implementing what I've learned into a gridless, interactive, world-building sandbox game called Minor Deity.
Minor Deity on Steam: https://store.steampowered.com/app/3876240/Minor_Deity/
Minor Deity Discord Server: https://discord.gg/2NEb4HxwhF
00:00 Intro
00:42 Indirect Rendering
03:03 Per-Instance Properties
04:33 Outro








![[2D 게임 개발 꿀팁 시리즈] 모바일 성능과 쓰로틀링](https://img.youtube.com/vi/z0bkXem0g7o/hqdefault.jpg)

![[2D 게임 개발 꿀팁 시리즈] 2D 게임에 3D 오브젝트 쉽게 사용하는 방법](https://img.youtube.com/vi/8ytJW1I6Agg/hqdefault.jpg)
![[2D 게임 개발 꿀팁 시리즈] 그림자 최적화로 60FPS](https://img.youtube.com/vi/L494gnEHr5A/hqdefault.jpg)
![[2D 게임 개발 꿀팁 시리즈] 메모리 절약 스프라이트 5가지](https://img.youtube.com/vi/-cxbULpRSXE/hqdefault.jpg)

![[2D 게임 개발 꿀팁 시리즈] Sprite Shape vs. Tilemap](https://img.youtube.com/vi/q5Yeif-jJ2I/hqdefault.jpg)
![[2D 게임 개발 꿀팁 시리즈] 2D 배칭 최적화](https://img.youtube.com/vi/zMMACezlItM/hqdefault.jpg)


![Cards: Tidy Up! [Demo Out Now]](https://img.youtube.com/vi/6DDIfmMYYFs/hqdefault.jpg)
![[2D 게임 개발 꿀팁 시리즈] 2D 배칭 조건](https://img.youtube.com/vi/5DstF95ojw0/hqdefault.jpg)






![[2D 게임 개발 꿀팁 시리즈] 2개의 2D 물리 시스템](https://img.youtube.com/vi/eqxd8YjgdEo/hqdefault.jpg)

![[2D 게임 개발 꿀팁 시리즈] 2D 게임 그림자 성능](https://img.youtube.com/vi/yMrlutMnhpc/hqdefault.jpg)

![[2D 게임 개발 꿀팁 시리즈] 성능과 재미 사이](https://img.youtube.com/vi/dE1PNUM40ag/hqdefault.jpg)










![[2D 게임 개발 꿀팁 시리즈] 물리를 바꾸면 FPS가 100배?](https://img.youtube.com/vi/uUU3wggbNtU/hqdefault.jpg)

![[2D 게임 개발 꿀팁 시리즈] 2D 배칭](https://img.youtube.com/vi/0HO_7fwC_6A/hqdefault.jpg)































![[2D 게임 개발 꿀팁 시리즈] Runtime Sprite Atlas](https://img.youtube.com/vi/ocFwQ4sogDo/hqdefault.jpg)

































































