Skip to content

File Refrac.h

File List > Intern > rayx-core > src > Shader > Refrac.h

Go to the documentation of this file

#pragma once

#include <cmath>

#include "Complex.h"
#include "Ray.h"
#include "Utils.h"

namespace rayx {

RAYX_FN_ACC void refrac2D(detail::Ray& __restrict ray, glm::dvec3 normal, double az, double ax);

RAYX_FN_ACC glm::dvec3 refract_dvec3(glm::dvec3 I, glm::dvec3 N, double eta);

}  // namespace rayx