mirror of
https://github.com/MartinOpat/cuda-based-raytrace.git
synced 2025-06-07 02:13:10 +02:00
Added some more useful math functions
This commit is contained in:
1 parent
cc8ef12508
commit
b107a2a6de
2 files changed
+23
No files matched your search
@@ -7,4 +7,11 @@ __device__ Vec3 computeGradient(float* volumeData, const int volW, const int vol
|
||||
|
||||
__device__ unsigned int packUnorm4x8(float r, float g, float b, float a);
|
||||
|
||||
__device__ float clamp(float value, float min, float max);
|
||||
__device__ float normalize(float value, float min, float max);
|
||||
|
||||
template <typename T>
|
||||
__device__ float interpolate(T start, T end, float t);
|
||||
|
||||
|
||||
#endif // MAT_H
|
||||