pex-gl / pex-math

Array-based vector, quaternion and matrix math with utils for PEX.
MIT License
14 stars 2 forks source link

vec4.fromVec3 should set W to 1 #11

Closed vorg closed 6 years ago

vorg commented 6 years ago
function fromVec3 (a, b) {
  a[0] = b[0]
  a[1] = b[1]
  a[2] = b[2]
  a[3] = 1 // NEW
  return a
}