All Downloads are FREE. Search and download functionalities are using the official Maven repository.

Common.MatDefs.ShaderNodes.HardwareSkinning.basicGpuSkinning.vert Maven / Gradle / Ivy

The newest version!

void main(){        
        modModelPosition = (mat4(0.0) +
            boneMatrices[int(boneIndex.x)] * boneWeight.x +
            boneMatrices[int(boneIndex.y)] * boneWeight.y +
            boneMatrices[int(boneIndex.z)] * boneWeight.z +
            boneMatrices[int(boneIndex.w)] * boneWeight.w) * vec4(modelPosition.xyz,1.0);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy