# mental ray scene file from "Writing mental ray shaders" # http://www.writingshaders.com/scene_catalog.html verbose on link "displace_texture.so" $include "displace_texture.mi" link "lambert.so" $include "lambert.mi" options "opt" object space contrast .1 .1 .1 1 samples 0 2 max displace .2 end options color texture "bubbles" "bubbles.tif" light "light" "mib_light_point" ( "color" 1 1 1 ) origin -2 2 0 end light instance "light_inst" "light" end instance material "bubble" opaque "lambert" ( "diffuse" 1 1 1, "lights" ["light_inst"] ) displace "displace_texture" ( "texture" "bubbles", "factor" .05 ) end material camera "cam" output "rgba" "tif" "displace_5.tif" focal 1.5 aperture 1 aspect 1.70213 resolution 400 235 end camera instance "camera-instance" "cam" transform 1.0 0.0 0.0 0.0 0.0 0.801130 0.598491 0.0 0.0 -0.598491 0.801130 0.0 0.0 0.056079 -2.080109 1.0 end instance instance "square-1" geometry "bw_square" () material "bubble" transform 1.0 0.0 0.0 0.0 0.0 -0.0 1.0 0.0 0.0 -1.0 -0.0 0.0 0.0 0.0 0.0 1.0 tag 1 globillum on globillum 3 end instance instgroup "root" "camera-instance" "light_inst" "square-1" end instgroup render "root" "camera-instance" "opt"