Skip to content

Instantly share code, notes, and snippets.

@hemantasapkota
Created February 9, 2024 06:05
Show Gist options
  • Save hemantasapkota/671914a2270f59c18205c39882d76e07 to your computer and use it in GitHub Desktop.
Save hemantasapkota/671914a2270f59c18205c39882d76e07 to your computer and use it in GitHub Desktop.
Property Value Description
width 800 Image width
height 600 Image height
samples_per_pixel 128 Pixel sampling rate
max_depth 50 Maximum depth for ray tracing
sky.texture "data/beach.jpg" Sky texture file
camera.look_from {x: -2.0, y: 0.5, z: 1.0} Camera origin
camera.look_at {x: 0.0, y: 0.0, z: -1.0} Point where the camera is looking
camera.vup {x: 0.0, y: 1.0, z: 0.0} Camera's up vector
camera.vfov 50.0 Camera's vertical field of view
camera.aspect 1.3333333333333333 Aspect ratio of the camera
objects Various Array of objects in the scene
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment