Let’s say you have a vertex shader which offsets each vertex position by some value.
Now how can I make this offset take the current rotation of the object in consideration so that it offsets in the same direction no matter how my object is rotated?
Just don’t use the vertex’s normal angle to determine which direction to push out, but instead simply push out in the direction you want. v.vertex += offsetDirection;