]> git.tdb.fi Git - libs/gl.git/blobdiff - source/texturecube.cpp
Use libmspmath to provide vector and matrix operations
[libs/gl.git] / source / texturecube.cpp
index 6935e582f5932cd7c000d844c56c976f2c47b0e9..ef9d25297a4285c5ec630cd65e3237c6cddbf471 100644 (file)
@@ -136,7 +136,7 @@ Vector3 TextureCube::get_texel_direction(TextureCubeFace face, unsigned u, unsig
        const Vector3 &fv = get_face_direction(face);
        const Vector3 &sv = get_s_direction(face);
        const Vector3 &tv = get_t_direction(face);
-       return Vector3(fv.x+s*sv.x, fv.y+t*tv.y, fv.z+s*sv.z+t*tv.z);
+       return fv+s*sv+t*tv;
 }
 
 } // namespace GL