Skip to content
Snippets Groups Projects
Commit fdbe4288 authored by Katharina Krämer's avatar Katharina Krämer
Browse files

[#94] fixed max_depth issue

parent 0f9acb80
No related branches found
No related tags found
1 merge request!77Resolve "SAF-R Module"
Pipeline #27092 passed
...@@ -94,7 +94,7 @@ vec3 castRay(const vec3 orig, const vec3 dir, int max_depth) { ...@@ -94,7 +94,7 @@ vec3 castRay(const vec3 orig, const vec3 dir, int max_depth) {
vec3 reflect_dir = direction; vec3 reflect_dir = direction;
vec3 reflect_orig = orig; vec3 reflect_orig = orig;
for(int i = 0; i < depth;i++){ for(int i = 0; i < max_depth;i++){
depth++; depth++;
intersect = sceneIntersect(reflect_orig, reflect_dir, point, hit_center, material); intersect = sceneIntersect(reflect_orig, reflect_dir, point, hit_center, material);
if(intersect != -1){ if(intersect != -1){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment