ray.h

来自「[Game.Programming].Academic - Graphics G」· C头文件 代码 · 共 17 行

H
17
字号
/* ray.h for test1, first test scene */#define DEPTH 3		/* max ray tree depth */#define SIZE 32		/* resolution of picture in x and y */#define AOV 25		/* total angle of view in degrees */#define NSPHERE 5	/* number of spheres */AMBIENT = {.02, .02, .02};	/* ambient light color *//* sphere: x y z  r g b  rad  kd ks kt kl  ir */SPHERE = {     0., 6., .5,    1., 1., 1.,   .9,   .05, .2, .85, 0.,  1.7,    -1., 8., -.5,   1., .5, .2,   1.,   .7, .3, 0., .05,   1.2,     1., 8., -.5,   .1, .8, .8,   1.,   .3, .7, 0., 0.,    1.2,     3., -6., 15.,  1., .8, 1.,   7.,   0., 0., 0., .6,    1.5,    -3., -3., 12.,  .8, 1., 1.,   5.,   0., 0., 0., .5,    1.5,};

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?