Jump to content

all animated shaders have wrong/static normals


shadmar
 Share

Recommended Posts

vertex shader of all shaders under Shaders/Model/Animated/*

 

mat3 nmat = mat3(entitymatrix);

 

should be:

 

mat3 nmat = mat3(entitymatrix * animmatrix);

 

You can clearly see the difference when playing animations, normals will now update with the animation.

  • Upvote 7

HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...