Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b51a2fd

Browse files
madmann91caiowakamatsu
authored andcommitted
Spaces -> tabs
1 parent 3e34a78 commit b51a2fd

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

assets/shaders/intersection.glsl

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ struct Material_new
3939
int type; /* 0: diffuse, 1: perfect mirror */
4040
vec3 base_color;
4141
vec3 emissive;
42-
float ior;
42+
float ior;
4343
};
4444

4545
Material_new convert_old_material
@@ -584,14 +584,13 @@ bool intersect_scene
584584
temp_ray.origin = (ray.origin - sphere.origin) / sphere.radius;
585585
temp_ray.direction = ray.direction / sphere.radius;
586586

587-
/*
588-
g(x) = 0, x \in S
589-
M(x) \in M(S) -> g(M^{-1}(x)) = 0 -> x \in S
590-
591-
*/
592-
587+
/*
588+
g(x) = 0, x \in S
589+
M(x) \in M(S) -> g(M^{-1}(x)) = 0 -> x \in S
590+
*/
591+
593592
//intersect_sphere(temp_ray, mint, closest_t, temp_isect);
594-
intersect_sphere(temp_ray, mint, closest_t, temp_isect);
593+
intersect_sphere(temp_ray, mint, closest_t, temp_isect);
595594
if (temp_isect.t<closest_t)
596595
{
597596
info = temp_isect;

0 commit comments

Comments
 (0)