X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftexturecube.cpp;h=ef9d25297a4285c5ec630cd65e3237c6cddbf471;hb=a3d248c7db9f04919ed5e4053f6e2a2f776cec47;hp=6935e582f5932cd7c000d844c56c976f2c47b0e9;hpb=b250a711295f5ba00114f11a5b1c855eebe08d26;p=libs%2Fgl.git diff --git a/source/texturecube.cpp b/source/texturecube.cpp index 6935e582..ef9d2529 100644 --- a/source/texturecube.cpp +++ b/source/texturecube.cpp @@ -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