Upgrade to Pro — share decks privately, control downloads, hide ads and more …

軽率にレイトレする

 軽率にレイトレする

第31回学生LTにて登壇する予定の資料

にー兄さん

November 08, 2019
Tweet

More Decks by にー兄さん

Other Decks in Programming

Transcript

  1. 古典的レイトレーシングのアルゴリズム for each pixels ray = ray from uv color

    = trace(ray) trace(ray) for each object in scene if ray intersects an object if the object is nearest in the scene return color(ray, object) color(ray, object) if shadow ray intersects light L = BRDF * (normal,ray) * (phi/r^2) if material is specular L+=trace(new ray) return L