Source

raytracer / scene.json

{"bg":[255,0,0],
 "ambience":0.075,
 "bounces":4,
 "camera": {
 	   "origin":[0,0,0],
	   "out":[1.0,0,0],
	   "up":[0.0,1.0,0],
	   "width":1024,
	   "height":768,
	   "xangle":2.0,
	   "yangle":1.5},
 "lights": [{"light_color":[255,100,50], "light_center":[4.0,6.0,0.0]},
            {"light_color":[50,255,100],"light_center":[0.0, 0.0, -3.0]}],
 "shapes": [{"name":"sphere","fields":{
		"center":[10.0,1.0,-2.0],
		"radius":2.5,
 	   	"sph_id":1, 
		"sph_surf":{"surface_color":[25,255,0],
			    "reflectance":0.0,
  			    "albedo":0.9}}},
	    {"name":"sphere","fields":{
		"center":[6.0,2.25,1.25],
		"radius":0.75,
		"sph_id":2,
		"sph_surf":{"surface_color":[255,255,10],
			    "reflectance":0.0,
			    "albedo":0.0}}},
	    {"name":"plane","fields":{
		"plane_normal":[-1.0, 0.0, -1.0],
		"offset":15,
		"plane_id":3,
		"plane_surf":{"surface_color":[125,125,255],
			      "reflectance":0.25,
			      "albedo":0.05}}},
	    {"name":"plane","fields":{
		"plane_normal":[-1.0,0.0,1.0],
		"offset":15,
		"plane_id":4,
		"plane_surf":{"surface_color":[200,200,20],
			      "reflectance":0.25,
			      "albedo":0.05}}},
	   {"name":"sphere","fields":{
		"center":[9.0,-3.0,-6.0],
		"radius":0.75,
		"sph_id":5,
		"sph_surf":{"surface_color":[255,255,255],
			    "reflectance":0.0,
			    "albedo":1.0}}},
	   {"name":"plane","fields":{
		"plane_normal":[-0.5,1.0,0.0],
		"offset":10.0,
		"plane_id":6,
		"plane_surf":{"surface_color":[50,50,50],
			      "reflectance":0.25,
			      "albedo":1.0}}}]
}