⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ray.h

📁 [Game.Programming].Academic - Graphics Gems (6 books source code)
💻 H
字号:
/* 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -