We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
我最开始的理解是要让同样的两个单位,播放不一样的动画,使用material property block分别传给shader不一样的参数,这样实现使用同一个material还能让两个单位获得不一样的参数,实现播放不一样的动画
但是我自己测试,即使两个单位用的同一个material(我把材质的instanceid打印出来发现是一样的),用material property block修改其中的一个参数,就会多一个drawcall。
我不知道是我哪里用错了吗?困扰我好久了?希望能获得解答,非常感谢!
The text was updated successfully, but these errors were encountered:
是否开启了 GPU Instancing ?
Sorry, something went wrong.
No branches or pull requests
我最开始的理解是要让同样的两个单位,播放不一样的动画,使用material property block分别传给shader不一样的参数,这样实现使用同一个material还能让两个单位获得不一样的参数,实现播放不一样的动画
但是我自己测试,即使两个单位用的同一个material(我把材质的instanceid打印出来发现是一样的),用material property block修改其中的一个参数,就会多一个drawcall。
我不知道是我哪里用错了吗?困扰我好久了?希望能获得解答,非常感谢!
The text was updated successfully, but these errors were encountered: