# mental ray scene file from "Writing mental ray shaders" # http://www.writingshaders.com/scene_catalog.html verbose on link "lambert.so" $include "lambert.mi" link "shadow_breakpoint_scale.so" $include "shadow_breakpoint_scale.mi" link "point_light_shadow.so" $include "point_light_shadow.mi" link "texture_uv.so" $include "texture_uv.mi" link "transparent.so" $include "transparent.mi" options "opt" object space globillum off face both trace depth 2 2 2 samples 2 2 contrast .1 .1 .1 end options light "white_light" "point_light_shadow" ("light_color" 1.1 1.1 1.1) origin 0 7 -9 end light instance "light_instance" "white_light" end instance material "gray" opaque "lambert" ( "diffuse" 1 1 1, "lights" ["light_instance"] ) end material color texture "fourgrid" "octatile.tif" #color texture "colorchart" "color_chart.tif" color texture "colorchart" "colorstrip.tif" filter 8 color texture "diamond" "gray_diamond.map" #color texture "diamond" "diamond.tif" shader "diamondgrid" "texture_uv" ( "tex" "diamond", "u_scale" 400, "v_scale" 400 ) material "diamondtile" opaque "lambert" ( "diffuse" = "diamondgrid", "lights" ["light_instance"] ) end material shader "grid" "texture_uv" ( "tex" "colorchart", "u_scale" 1, "v_scale" 1 ) camera "cam" output "rgba" "tif" "shadows_C1.tif" focal 65 aperture 33.3 aspect 1.66667 resolution 500 300 end camera instance "camera-instance" "cam" transform 1.0 0.0 0.0 0.0 0.0 0.945151 0.326633 0.0 0.0 -0.326633 0.945151 0.0 0.0 0.330803 -7.080294 1.0 end instance instance "cube-1" geometry "bw_cube" ("name" "cube") material "diamondtile" transform 0.010 0.0 0.0 0.0 0.0 100.0 0.0 0.0 0.0 0.0 0.010 0.0 0.0 55.0 0.0 1.0 tag 1 globillum on globillum 3 end instance material "shadow_transparent_0" "transparent" ( "color" = "grid", "transparency" 0.00 0.00 0.00 ) shadow "shadow_breakpoint_scale" ( "color" = "grid", "transparency" 0.00 0.00 0.00, "breakpoint" .25, "center" .25, "extent" .25 ) end material instance "square-1" geometry "bw_square" () material "shadow_transparent_0" transform 9.708738 0.0 0.0 0.0 0.0 0.861085 0.0 0.0 0.0 0.0 1.0 0.0 10.970874 -0.086109 0.0 1.0 tag 2 globillum on globillum 3 end instance material "shadow_transparent_5" "transparent" ( "color" = "grid", "transparency" 0.05 0.05 0.05 ) shadow "shadow_breakpoint_scale" ( "color" = "grid", "transparency" 0.05 0.05 0.05, "breakpoint" .25, "center" .25, "extent" .25 ) end material instance "square-2" geometry "bw_square" () material "shadow_transparent_5" transform 9.708738 0.0 0.0 0.0 0.0 0.861085 0.0 0.0 0.0 0.0 1.0 0.0 9.873786 -0.086109 0.0 1.0 tag 3 globillum on globillum 3 end instance material "shadow_transparent_10" "transparent" ( "color" = "grid", "transparency" 0.10 0.10 0.10 ) shadow "shadow_breakpoint_scale" ( "color" = "grid", "transparency" 0.10 0.10 0.10, "breakpoint" .25, "center" .25, "extent" .25 ) end material instance "square-3" geometry "bw_square" () material "shadow_transparent_10" transform 9.708738 0.0 0.0 0.0 0.0 0.861085 0.0 0.0 0.0 0.0 1.0 0.0 8.776699 -0.086109 0.0 1.0 tag 4 globillum on globillum 3 end instance material "shadow_transparent_15" "transparent" ( "color" = "grid", "transparency" 0.15 0.15 0.15 ) shadow "shadow_breakpoint_scale" ( "color" = "grid", "transparency" 0.15 0.15 0