- Home /
Dynamic Batching with vertex scaling problem
Hello I have a question.
When the vertex is scaled in the sprite renderer shader and dynamic batching is applied, the position is not correct.
Turning off Dynamic Batching will work correctly.
Does the Vortex scaling code ignore when Dynamic Batching is enabled?
Can I get some advice on how to solve this problem?
Answer by andrew-lukasik · Dec 09, 2020 at 07:20 PM
Vertex shader happens after batching (mesh merging), so vertex positions are no longer what you expect. Disable dynamic batching or switch to GPU instancing instead.
Your answer
Follow this Question
Related Questions
Clarification on static batching a shader-animated mesh 1 Answer
Dynamic Batching not working even adhering to all rules 3 Answers
Add new vertex attributes for a shader,Create vertex attributes 0 Answers
Does dynamic batching and vertex shader work together? 1 Answer
Vertex Displacement Shader Graph With The Camera Moving Issue 1 Answer