Home - sketchbooks99/mypt GitHub Wiki
Welcome to the MyPT wiki!
How to configure the scene
filename result/simple.png
# Image resolution
width 1024
height 768
# The number of samples per pixel
spp 8
# The number of maximum depth to track rays
depth 5
# Background color
background 0.5 0.5 0.5
# Camera settings
beginCamera
origin 0 0 -70
lookat 0 0 0
up 0 1 0
focus_length 15.0
aperture 0
endCamera
# Ground plane
beginPrimitive
shape plane min -100 -100 max 100 100
material checker color1 0.3 0.3 0.3 color2 0.9 0.9 0.9
endPrimitive
# Sphere
beginPrimitive
shape sphere 1
translate 0 1 0
maaterial dielectric color 1 1 1 ior 1.5
endPrimitive