Skip to content

Instantly share code, notes, and snippets.

@treeform
Created February 21, 2012 17:02
Show Gist options
  • Save treeform/1877380 to your computer and use it in GitHub Desktop.
Save treeform/1877380 to your computer and use it in GitHub Desktop.
mat4 old = uOldGeomMats[int(aGeomIndex)];
mat4 new = uGeomMats[int(aGeomIndex)];
mat4 final;
float a = new[0][0];
float b = old[0][0];
// works :
// final[0][0] = old[0][0];
// works :
// final[0][0] = new[0][0];
// warning X3206: implicit truncation of vector type :
final[0][0] = new[0][0] + old[0][0];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment