branch | pyrit |
changeset 82 | 930a2d3ecaed |
parent 80 | 907929fa9b59 |
child 83 | e3a2a5b26abb |
81:9dbb9c8c115b | 82:930a2d3ecaed |
---|---|
75 { |
75 { |
76 Vector3 dir = p - (u*samp.x + v*samp.y)*F; |
76 Vector3 dir = p - (u*samp.x + v*samp.y)*F; |
77 dir.normalize(); |
77 dir.normalize(); |
78 return Ray(eye, dir); |
78 return Ray(eye, dir); |
79 }; |
79 }; |
80 |
|
81 void makeRayPacket(Sample *samples, Ray *rays) |
|
82 { |
|
83 for (int i = 0; i < 4; i++) |
|
84 rays[i] = makeRay(samples[i]); |
|
85 }; |
|
80 }; |
86 }; |
81 |
87 |
82 /** |
88 /** |
83 * light object |
89 * light object |
84 */ |
90 */ |