unitycoder / DoomStyleBillboardTest

Shader to display camera facing billboard, with different texture based on player position angle
http://unitycoder.com/blog/2015/04/06/doom-style-billboard-shader/
59 stars 12 forks source link

If there are 2 or more objects with same billboard material in scene, rotation breaks #5

Closed unitycoder closed 8 years ago

unitycoder commented 8 years ago

direction, scaling all breaks..

unitycoder commented 8 years ago

Caused by [x] Dynamic Batching..no idea why, but for now just disable dynamic batching..

unitycoder commented 8 years ago

Can add to shader tag for disabling batching: (so other objects can get batched) Tags {"Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" "DisableBatching"="True"}