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

Ah, just change this:

mat3 nmat = mat3(entitymatrix);

 

to this:

mat3 nmat = mat3(entitymatrix_);

 

Much much better.

  • Upvote 1

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...