Fix metal roughness texture on streaked metal material
[opengl.git] / pbrvert.glsl
index 1cea9a8e24748fa82eb3752921e575c9d0fa544f..775cebfb0f411c04aa80c10f195e1e31cad1308b 100644 (file)
@@ -21,9 +21,9 @@ void main() {
        texCoords = vTexCoord;
 
        mat4 boneTrans = bones[boneIds.x] * boneWeights.x;
-       /* boneTrans += bones[boneIds.y] * boneWeights.y; */
-       /* boneTrans += bones[boneIds.z] * boneWeights.z; */
-       /* boneTrans += bones[boneIds.w] * boneWeights.w; */
+       boneTrans += bones[boneIds.y] * boneWeights.y;
+       boneTrans += bones[boneIds.z] * boneWeights.z;
+       boneTrans += bones[boneIds.w] * boneWeights.w;
 
        mat4 bonedModel = boneTrans * model;