Created
March 17, 2009 15:02
-
-
Save syoyo/80584 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FrameBegin 1 | |
Format 512 512 1 | |
PixelSamples 2 2 | |
PixelFilter "box" 1 1 | |
ShadingRate 0.5 | |
ShadingInterpolation "smooth" | |
Display "ao.tiff" "file" "rgb" # render image to buffer | |
Projection "perspective" "fov" 22 | |
Translate 0 -0.5 8 | |
Rotate -40 1 0 0 | |
Rotate -20 0 1 0 | |
WorldBegin | |
Attribute "visibility" "trace" [1] | |
Attribute "visibility" "transmission" "opaque" | |
Attribute "cull" "hidden" 0 | |
Attribute "cull" "backfacing" 0 | |
# Attribute "trace" "bias" 0.005 | |
Surface "ambocc" "float samples" 128 | |
# White ground plane | |
AttributeBegin | |
Color [1 1 1] | |
Polygon "P" [ -5 0 5 5 0 5 5 0 -5 -5 0 -5 ] | |
AttributeEnd | |
# sphere | |
AttributeBegin | |
Color [1 1 1] | |
Translate -0.7 0.5 0 | |
Sphere 0.5 -0.5 0.5 360 | |
AttributeEnd | |
# box | |
AttributeBegin | |
Translate 0.3 0.01 0 | |
Rotate -30 0 1 0 | |
Color [1 1 1] | |
Polygon "P" [ 0 0 0 0 0 1 0 1 1 0 1 0 ] # left side | |
Polygon "P" [ 1 1 0 1 1 1 1 0 1 1 0 0 ] # right side | |
Color [1 1 1] | |
Polygon "P" [ 0 1 0 1 1 0 1 0 0 0 0 0 ] # front side | |
Polygon "P" [ 0 0 1 1 0 1 1 1 1 0 1 1 ] # back side | |
Color [ 1 1 1] | |
Polygon "P" [ 0 1 1 1 1 1 1 1 0 0 1 0 ] # top | |
AttributeEnd | |
WorldEnd | |
FrameEnd | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment