Option "searchpath" "shader" "@:../shaders"
Option "searchpath" "texture" "../textures"
Option "searchpath" "archive" "../archives:Cutter_Help/templates/Rib:custom_templates/Rib"
  
Display "lava" "it" "rgba"
Format 1200 960 1
  
ShadingInterpolation "smooth"
ShadingRate .5
PixelSamples 8 8
  
DisplayChannel "float _area"
DisplayChannel "color _radiance_t"
  
Projection "perspective" "fov" 18
Translate 0 0 170
Rotate -30  1 0 0
Rotate 0  0 1 0
  
  
Imager "background" "background" [0.2 0.2 0.2] # Background color
WorldBegin
  
  
#    LightSource "pointlight" 1 "from" [-60 60 -60] "intensity" 5000 #"samples" 4
#    LightSource "pointlight" 2 "from" [0 30 -100] "intensity" 15000 #"samples" 4
#    LightSource "pointlight" 3 "from" [-60 0 -100] "intensity" 7000
  
#    Attribute "visibility" "trace" [1]
#    Attribute "shade" "string transmissionhitmode" ["primitive"]
#    Attribute "visibility" "int transmission" [1]
  
    AttributeBegin
        Surface "dh_lava"
                "bake" 0
                "filename" ["../data/direct_rad_sss.bkm"]
                "displaychannels" ["_area,_radiance_t"]
                
                "Ks" 0.5
                "Kd" 0.5
                "Ka" 1.0
                "roughness" 0.1
                
                "ssintensity" 5
                "maskRampIntensity" -20
                
                "diffusecolor" [0.192 0.219 0.254]
                "specularcolor" [1.0 1.0 0.882]
                
                "magma_turbFreq" 7
                "magma_turbDepth" 4
                "magma_turbCrinkle" 12 
                "magma_turbIntensity" 20
                
                "crust_turbFreq" 7
                "crust_turbDepth" 5
                "crust_turbMag" 1
  
  
  
#        Surface "plastic"
  
        Displacement "dh_lava_displace"
                    "Km" 0.7
                    "freq" 3
                    "layers" 3
                    "space" ["object"]
  
#                    "Km" 0.1
#                    "freq" 1.2
#                    "amp" 6
  
        Attribute "bound" "displacement" [1]
    
#        Translate -2 -14 0
#        Rotate -90  1 0 0
        Scale 3 3 3   # convert units from cm to mm
#        Sides 1
#        Geometry "teapot"
        ReadArchive "../ribs/lava_tester.rib"
#        Sphere 2 -2 2 360
    AttributeEnd
WorldEnd