SCM Repository
[diderot] Diff of /trunk/test/MIP/mip_c.c
Diff of /trunk/test/MIP/mip_c.c
Parent Directory
|
Revision Log
|
Patch
109 |
|
|
110 |
Diderot_vec3_t dir = selfIn->dir; |
Diderot_vec3_t dir = selfIn->dir; |
111 |
Diderot_vec3_t pos = selfIn->pos; |
Diderot_vec3_t pos = selfIn->pos; |
112 |
pos = Diderot_AddV3(pos, Diderot_ScaleV3(glob->stepSz, dir)); |
pos = Diderot_AddV3(pos, Diderot_ScaleV3(glob->stepSz, dir.v)); |
113 |
|
|
114 |
Diderot_Vec3_t imgPos = Diderot_TransformVec3 (pos, img->mInv); |
Diderot_Vec3_t imgPos = Diderot_TransformVec3 (pos, img->mInv); |
115 |
if (Diderot_Inside3D(imgPos, img)) { |
if (Diderot_Inside3D(imgPos, img)) { |
125 |
Diderot_real_t t = selfIn->t; |
Diderot_real_t t = selfIn->t; |
126 |
if (t > 20.0f) { |
if (t > 20.0f) { |
127 |
selfOut->pos = pos; |
selfOut->pos = pos; |
128 |
self->t = t; |
selfOut->t = t; |
129 |
RayCast_stabilize (glob, self); |
RayCast_stabilize (glob, selfOut); |
130 |
return; |
return; |
131 |
} |
} |
132 |
|
|
|
Legend:
Removed from v.447 |
|
changed lines |
|
Added in v.448 |
|
|