Vertex Animation Texture normals on Instanced Static Meshes

   1368   0   0
User Avatar
Member
1 posts
Joined: Jan. 2017
Offline
Hello! I've been using VAT soft in unreal recently, and have found an issue with normal rotation when using Instanced Static Meshes (example gif of incorrectly transformed normals below)



Apparently unreal's transform node only accounts for per-instance transformation in the Vertex shader, and Sidefx's VAT Soft material function uses it in the Fragment shader.
The fix I found for the incorrect normals was to move the local->world normal transformation from the fragment to vertex portion of the shader (as indicated in the image below)



Hopefully anyone else encountering this issue finds this helpful!

Attachments:
VAT_animated_box_test_12_05_2021.gif (1.6 MB)
VAT_Softbody_Normal_Transform_Fix.png (341.1 KB)

  • Quick Links