File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ nbl_glsl_xoroshiro64star_state_t load_aux_vertex_attrs(
186
186
normalizedN.x = dot (batchInstanceData.normalMatrixRow0,normal);
187
187
normalizedN.y = dot (batchInstanceData.normalMatrixRow1,normal);
188
188
normalizedN.z = dot (batchInstanceData.normalMatrixRow2,normal);
189
- normalizedN = normalize (normal );
189
+ normalizedN = normalize (normalizedN );
190
190
191
191
return scramble_start_state;
192
192
}
@@ -266,7 +266,7 @@ for (uint i=1u; i!=vertex_depth; i++)
266
266
// TODO: investigate why we can't use `normalizedN` here
267
267
const vec3 ray_offset_vector = normalize (cross (dPdBary[0 ],dPdBary[1 ]))* inversesqrt_precision;
268
268
float origin_offset = nbl_glsl_numeric_limits_float_epsilon(44u); // I pulled the constants out of my @$$
269
- origin_offset += dot (abs (ray_offset_vector),abs (origin))* nbl_glsl_numeric_limits_float_epsilon(24u );
269
+ origin_offset += dot (abs (ray_offset_vector),abs (origin))* nbl_glsl_numeric_limits_float_epsilon(32u );
270
270
// TODO: in the future run backward error analysis of
271
271
// dot(mat3(WorldToObj)*(origin+offset*geomNormal/length(geomNormal))+(WorldToObj-vx_pos[1]),geomNormal)
272
272
// where
You can’t perform that action at this time.
0 commit comments