Skip to content

repo to show how to deal drawcall batch fro ui(sprite) shader

Notifications You must be signed in to change notification settings

bakabird/ccc3UIShaderBatch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

前言

为啥要合批

减少DC

什么是自定义顶点参数

通过 几何体实例化 特性(GPU Instancing)可使 GPU 批量绘制模型相同且材质相同的渲染对象。如果我们想在不打破这一特性的情况下单独修改某个对象的显示效果,就需要通过自定义几何体实例化属性。

参考文档

UI(Sprite) 怎么你了?

image

按照文档中的说法,需要用到 MeshRenderer 来设置自定义属性。 但 UI(Sprite) 并没有这个组件,也就无法按照文档来实现自定义 UI shader 的合批。

后续博文地址

About

repo to show how to deal drawcall batch fro ui(sprite) shader

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published