Computer graphics in Game development
Ivan Belyavtsev
30.09.2022
Shading is how surfaces are “painted” with light
Shadow is a dark area formed by occluded light source [1]
\[ray(t)=\vec{origin}+t*\hat{direction}\]
\[t>0\]
[5]
Ray generation method generates primary rays (camera rays) and call Trace ray to evaluate the final color of each trace.
[6]
Miss shader is called when Trace ray haven’t found any intersection
[5]
Miss sharer is used to generate a scene without geometry. Could be pure color, sky, terrain, etc
by Morgan McGuire
set_render_target
, set_viewport
,
and clear_render_target
methods of raytracer
classrender_target
, camera
, and
raytracer
in ray_tracing_renderer
classray_generation
and trace_ray
method of raytracer
classmiss_shader
, image clearing, calling
ray_generation
, and saving in
ray_tracing_renderer
class