Skip to content

Commit

Permalink
Inside view shader: some white space fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
unhyperbolic committed Nov 2, 2023
1 parent 9048026 commit 6575aa0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions python/raytracing/shaders/fragment.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ uniform bool showElevation = false;

layout (std140) uniform TetrahedraCombinatorics
{
int otherTetNums[4 * ##num_tets##];
int otherTetNums[4 * ##num_tets##];
int otherFaceNums[4 * ##num_tets##];
};

Expand Down Expand Up @@ -233,7 +233,7 @@ triangleBdryParam(vec4 samplePoint, int tetNum, int exit_face){
float new_p = geodesicParameterPlanes(samplePoint, exit_dual_point, planes[index]);
if(new_p < smallest_p){
smallest_p = new_p;
}
}
}
}
return smallest_p;
Expand Down Expand Up @@ -360,7 +360,7 @@ realRootsOfQuadratic(float a, float b, float c,

// Intersection with plane.
// The plane is given by all points such that the inner product
// of the point and the planeEqn is zero.
// of the point and the planeEqn is zero.
float
distParamForPlaneIntersection(Ray ray,
vec4 planeEqn)
Expand All @@ -384,7 +384,7 @@ distParamsForSphereIntersection(Ray ray,
{
float startDot = R13Dot(center, ray.point);
float dirDot = R13Dot(center, ray.dir);

return realRootsOfQuadratic(
dirDot * dirDot + sphereRadiusParam,
2.0 * dirDot * startDot,
Expand Down Expand Up @@ -591,7 +591,7 @@ normalForRayHit(RayHit ray_hit)
#endif

#endif

if(ray_hit.object_type == object_type_edge_fan ||
ray_hit.object_type == object_type_elevation_enter ||
ray_hit.object_type == object_type_elevation_exit) {
Expand Down

0 comments on commit 6575aa0

Please sign in to comment.