mirror of
https://github.com/enduro2d/enduro2d.git
synced 2025-12-14 16:09:06 +07:00
Merge pull request #95 from KonH/fix_look_function_name
This commit is contained in:
@@ -512,12 +512,12 @@ namespace e2d::math
|
||||
}
|
||||
|
||||
//
|
||||
// make_loot_at_lh_matrix4
|
||||
// make_look_at_lh_matrix4
|
||||
//
|
||||
|
||||
template < typename T >
|
||||
std::enable_if_t<std::is_floating_point_v<T>, mat4<T>>
|
||||
make_loot_at_lh_matrix4(const vec3<T>& eye, const vec3<T>& at, const vec3<T>& up) noexcept {
|
||||
make_look_at_lh_matrix4(const vec3<T>& eye, const vec3<T>& at, const vec3<T>& up) noexcept {
|
||||
const vec3<T> az = normalized(at - eye);
|
||||
const vec3<T> ax = normalized(math::cross(up, az));
|
||||
const vec3<T> ay = math::cross(az, ax);
|
||||
@@ -532,12 +532,12 @@ namespace e2d::math
|
||||
}
|
||||
|
||||
//
|
||||
// make_loot_at_rh_matrix4
|
||||
// make_look_at_rh_matrix4
|
||||
//
|
||||
|
||||
template < typename T >
|
||||
std::enable_if_t<std::is_floating_point_v<T>, mat4<T>>
|
||||
make_loot_at_rh_matrix4(const vec3<T>& eye, const vec3<T>& at, const vec3<T>& up) noexcept {
|
||||
make_look_at_rh_matrix4(const vec3<T>& eye, const vec3<T>& at, const vec3<T>& up) noexcept {
|
||||
const vec3<T> az = normalized(eye - at);
|
||||
const vec3<T> ax = normalized(math::cross(up, az));
|
||||
const vec3<T> ay = math::cross(az, ax);
|
||||
|
||||
@@ -244,7 +244,7 @@ namespace
|
||||
math::make_rotation_matrix4(make_rad(the<engine>().time()), 0.f, 1.f, 0.f) *
|
||||
math::make_rotation_matrix4(make_rad(the<engine>().time()), 0.f, 0.f, 1.f) *
|
||||
math::make_translation_matrix4(0.f, 0.f, 0.f) *
|
||||
math::make_loot_at_lh_matrix4({0.f, 0.f, -3.f}, v3f::zero(), v3f::unit_y()) *
|
||||
math::make_look_at_lh_matrix4({0.f, 0.f, -3.f}, v3f::zero(), v3f::unit_y()) *
|
||||
projection;
|
||||
|
||||
material_.properties()
|
||||
|
||||
@@ -214,7 +214,7 @@ namespace
|
||||
math::make_rotation_matrix4(make_rad(the<engine>().time()), 0.f, 1.f, 0.f) *
|
||||
math::make_rotation_matrix4(make_rad(the<engine>().time()), 0.f, 0.f, 1.f) *
|
||||
math::make_translation_matrix4(0.f, 0.f, 0.f) *
|
||||
math::make_loot_at_lh_matrix4({0.f, 0.f, -2.f}, v3f::zero(), v3f::unit_y()) *
|
||||
math::make_look_at_lh_matrix4({0.f, 0.f, -2.f}, v3f::zero(), v3f::unit_y()) *
|
||||
projection;
|
||||
|
||||
material_.properties()
|
||||
|
||||
Reference in New Issue
Block a user