mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
workaround for no c++11 numeric_limits
This commit is contained in:
parent
ce16e24637
commit
7a1974742a
110 changed files with 727 additions and 436 deletions
|
@ -1,8 +1,8 @@
|
|||
#ifndef SPROUT_DARKROOM_LIGHTS_AMBIENT_LIGHT_HPP
|
||||
#define SPROUT_DARKROOM_LIGHTS_AMBIENT_LIGHT_HPP
|
||||
|
||||
#include <limits>
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/limits.hpp>
|
||||
#include <sprout/tuple/tuple.hpp>
|
||||
#include <sprout/tuple/functions.hpp>
|
||||
#include <sprout/darkroom/colors/rgb.hpp>
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#ifndef SPROUT_DARKROOM_LIGHTS_LIGHT_LIST_HPP
|
||||
#define SPROUT_DARKROOM_LIGHTS_LIGHT_LIST_HPP
|
||||
|
||||
#include <limits>
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/limits.hpp>
|
||||
#include <sprout/index_tuple/metafunction.hpp>
|
||||
#include <sprout/tuple/tuple.hpp>
|
||||
#include <sprout/darkroom/access/access.hpp>
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#ifndef SPROUT_DARKROOM_LIGHTS_PARALLEL_LIGHT_HPP
|
||||
#define SPROUT_DARKROOM_LIGHTS_PARALLEL_LIGHT_HPP
|
||||
|
||||
#include <limits>
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/limits.hpp>
|
||||
#include <sprout/darkroom/access/access.hpp>
|
||||
#include <sprout/darkroom/colors/rgb.hpp>
|
||||
#include <sprout/darkroom/coords/vector.hpp>
|
||||
|
@ -49,9 +49,9 @@ namespace sprout {
|
|||
inter,
|
||||
!sprout::darkroom::intersects::does_intersect(light_ray_inter)
|
||||
|| sprout::darkroom::intersects::distance(light_ray_inter)
|
||||
< std::numeric_limits<unit_type>::epsilon()
|
||||
< sprout::numeric_limits<unit_type>::epsilon()
|
||||
? NS_SSCRISK_CEL_OR_SPROUT::max(
|
||||
std::numeric_limits<unit_type>::epsilon(),
|
||||
sprout::numeric_limits<unit_type>::epsilon(),
|
||||
sprout::darkroom::coords::dot(
|
||||
dir_,
|
||||
sprout::darkroom::intersects::normal(inter)
|
||||
|
@ -76,7 +76,7 @@ namespace sprout {
|
|||
sprout::darkroom::coords::add(
|
||||
sprout::darkroom::coords::scale(
|
||||
dir_,
|
||||
std::numeric_limits<unit_type>::epsilon() * 256
|
||||
sprout::numeric_limits<unit_type>::epsilon() * 256
|
||||
),
|
||||
sprout::darkroom::intersects::point_of_intersection(inter)
|
||||
),
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#ifndef SPROUT_DARKROOM_LIGHTS_POINT_LIGHT_HPP
|
||||
#define SPROUT_DARKROOM_LIGHTS_POINT_LIGHT_HPP
|
||||
|
||||
#include <limits>
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/limits.hpp>
|
||||
#include <sprout/darkroom/access/access.hpp>
|
||||
#include <sprout/darkroom/colors/rgb.hpp>
|
||||
#include <sprout/darkroom/coords/vector.hpp>
|
||||
|
@ -55,9 +55,9 @@ namespace sprout {
|
|||
|| sprout::darkroom::intersects::distance(light_ray_inter)
|
||||
> sprout::darkroom::coords::length(diff)
|
||||
|| sprout::darkroom::intersects::distance(light_ray_inter)
|
||||
< std::numeric_limits<unit_type>::epsilon()
|
||||
< sprout::numeric_limits<unit_type>::epsilon()
|
||||
? NS_SSCRISK_CEL_OR_SPROUT::max(
|
||||
std::numeric_limits<unit_type>::epsilon(),
|
||||
sprout::numeric_limits<unit_type>::epsilon(),
|
||||
sprout::darkroom::coords::dot(
|
||||
direction,
|
||||
sprout::darkroom::intersects::normal(inter)
|
||||
|
@ -80,7 +80,7 @@ namespace sprout {
|
|||
sprout::darkroom::coords::add(
|
||||
sprout::darkroom::coords::scale(
|
||||
direction,
|
||||
std::numeric_limits<unit_type>::epsilon() * 256
|
||||
sprout::numeric_limits<unit_type>::epsilon() * 256
|
||||
),
|
||||
sprout::darkroom::intersects::point_of_intersection(inter)
|
||||
),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue