Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
Updates README.md.
Browse files Browse the repository at this point in the history
  • Loading branch information
brenomfviana committed Nov 13, 2017
1 parent 658ad5b commit fd93c67
Showing 1 changed file with 31 additions and 24 deletions.
55 changes: 31 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,20 +99,25 @@ CODIFICATION: binary # or ascii
WIDTH: 1200
HEIGHT: 600
# Ray Tracer Settings
SAMPLES: 100 # Number of samples for anti-aliasing
RAYS: 100 # Number of rays of the recursion
SAMPLES: 1 # Number of samples for anti-aliasing
RAYS: 0 # Number of rays of the recursion
# Camera
CAMERA:
LLC: -2 -1 -1 # Lower left corner of the view plane
H: 4 0 0 # Horizontal dimension of the view plane
V: 0 2 0 # Vertical dimension of the view plane
O: 0 0 0 # The camera's origin
PERSPECTIVE
LOOK_FROM: 0 0 0
LOOK_AT: 0 0 -1
VUP: 0 1 0
VFOV: 90
ASPECT_RATIO: 2
APERTURE: 0
FOCAL_DISTANCE: 1
# Scene description
SHADER:
BACKGROUND
BACKGROUND:
TOP: 0.5 0.7 1 # Top color
BOTTOM: 1 1 1 # Bottom color
```

### Blinn-Phong Shader
Expand All @@ -126,50 +131,52 @@ BACKGROUND:

```txt
# Output settings
NAME: blinn_phong2.ppm
NAME: blinn_phong_1.ppm
TYPE: PPM
CODIFICATION: binary # or ascii
WIDTH: 1200
HEIGHT: 600
# Ray Tracer Settings
SAMPLES: 100 # Number of samples for anti-aliasing
RAYS: 100 # Number of rays of the recursion
RAYS: 0 # Number of rays of the recursion
# Camera
CAMERA:
LLC: -2 -1 -1 # Lower left corner of the view plane
H: 4 0 0 # Horizontal dimension of the view plane
V: 0 2 0 # Vertical dimension of the view plane
O: 0 0 0 # The camera's origin
PERSPECTIVE
LOOK_FROM: 0 0 0
LOOK_AT: 0 0 -1
VUP: 0 1 0
VFOV: 90
ASPECT_RATIO: 2
APERTURE: 0
FOCAL_DISTANCE: 1
# Scene description
SHADER:
BLINNPHONG
AMBIENT_LIGHT: 0.4 0.4 0.4
AMBIENT_LIGHT: 0.3 0.3 0.3
BACKGROUND:
TOP: 0.5 0.7 1 # Top color
BOTTOM: 1 1 1 # Bottom color
COMPONENTS:
LIGHT:
DIRECTION: -8 7 0
INTENSITY: 0.8 0.8 0.8
LIGHT:
DIRECTION: 20 10 15
INTENSITY: 0.5 0.5 0.5
DIRECTIONAL_LIGHT:
DIRECTION: 20 10 5
INTENSITY: 1 1 1
SPHERE:
ORIGIN: 0 -100.5 -1
RADIUS: 100
BLINN_PHONG_MATERIAL:
KA: 0.1 0.1 0.1
KD: 0.8 0.8 0.8
KS: 0 0 0
P: 64
KD: 0.3 0.3 0.3
KS: 1 1 1
P: 5
SPHERE:
ORIGIN: 0 0 -1
RADIUS: 0.5
BLINN_PHONG_MATERIAL:
KA: 0.1 0.1 0.1
KD: 0.7 0.2 0.1
KS: 1 1 1
KD: 0 0.3 0.8
KS: 0.9 0.9 0.9
P: 64
```

## Author
Expand Down

0 comments on commit fd93c67

Please sign in to comment.