Download as a group | texture_map.ray Purpose: Test texture mapping Settings:
Image: Code: SBT-raytracer 1.0 // texture_map.ray // purpose: Test texture mapping // depth: 10 // Don't forget to increase the trace depth to >= 2! // This was rendered with the following attenuation // settings: // Distance scale: 0.000 OR 1.87 // Constant term: 0.25 OR 0.25 // Linear term: 0.0033724 OR 0.25 // Quadratic term: 0.00004592 OR 0.25 camera { position = (15, 0, 5); viewdir = (-1, 0, -.3); updir = (0, 0, 1); } directional_light { direction = (-0.2, 0.2, -2); color = (.7, .7, .7); } directional_light { direction = (-1, -0.5, -0.3); color = (.6, .6, .6); } // The box forms a plane, which should reflect the cylinder translate( 0, 0, -2, scale( 15, 15, 1, box { material = { diffuse = map( "checkerboard.bmp" ); specular = (0.5, 0.5, 0.5); reflective = (0, 0, 0); shininess = 0.2; } } ) ) translate( 0, 0, 2, scale( 2, sphere { material = { specular = (0.8, 0.8, 0); reflective = (0.7, 0.7, 0); diffuse = (0.2, 0.2, 0); shininess = 2; } } ) ) |