Talk:Cg Programming/Unity/Cutaways

Better Cutaways
"Now you have the position of the fragment in the local coordinate system of the other sphere object; here, it is easy to test whether the fragment is inside the sphere or not because in this coordinate system all spheres are centered around the origin with radius 0.5."

I'm drawing a total blank here. Can anyone help me out?


 * Well, it's not "all spheres" but the built-in spheres of Unity are modeled in this way: center at the origin and radius 0.5. Thus, in model/object/local coordinates any built-in sphere has the same coordinates. --Martin Kraus (discuss • contribs) 08:09, 30 June 2014 (UTC)