raylib-3D
raylib-3D copied to clipboard
shader recalculating normal matrix for each vertex
mat3 normalMatrix = transpose(inverse(mat3(modelMatrix)));
if normalMatrix was a uniform calculated once per frame(!) by the cpu, instead of each vertex, should probably speed things up