You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
482 B
20 lines
482 B
#pragma once
|
|
|
|
#include <base/subface.hpp>
|
|
|
|
namespace internal
|
|
{
|
|
// local: a sphere with center at (0, 0, 0) and radius 1
|
|
// u: planar angle from x-axis to z-axis
|
|
// v: polar angle from xz-plane to y-axis
|
|
struct sphere_face_t final : subface {
|
|
};
|
|
} // namespace internal
|
|
|
|
namespace detail
|
|
{
|
|
template <>
|
|
struct hasher<internal::sphere_face_t> {
|
|
size_t operator()(const internal::sphere_face_t &subface) const { return hash_funcs(subface.local_to_world); }
|
|
};
|
|
} // namespace detail
|