Skip to content

Commit

Permalink
Last minute changes to README.
Browse files Browse the repository at this point in the history
  • Loading branch information
quephird committed Oct 16, 2022
1 parent 2ece3ae commit a0c3cf9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import ScintillaLib

@main
struct QuickStart: ScintillaApp {
var body: World = World {
var body = World {
PointLight(point(-10, 10, -10))
Camera(400, 400, PI/3, .view(
point(0, 2, -2),
Expand Down Expand Up @@ -93,7 +93,7 @@ import ScintillaLib
@main
struct MyWorld: ScintillaApp {
var body: World = World {
var body = World {
PointLight(point(-10, 10, -10))
Camera(800, 600, PI/3, .view(
point(0, 0, -5),
Expand Down Expand Up @@ -331,7 +331,7 @@ import ScintillaLib

@main
struct MyWorld: ScintillaApp {
var body: World = World {
var body = World {
PointLight(point(-10, 10, -10))
Camera(800, 600, PI/3, .view(
point(0, 1, -2),
Expand Down Expand Up @@ -373,7 +373,7 @@ import ScintillaLib

@main
struct CSGExample: ScintillaApp {
var body: World = World {
var body = World {
PointLight(point(-10, 10, -10))
Camera(400, 400, PI/3, .view(
point(0, 1.5, -2),
Expand Down
1 change: 0 additions & 1 deletion Sources/ScintillaLib/World.swift
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,6 @@ public class World {
return Ray(origin, direction)
}

// TODO: Need to think about how best to inject jitter
public func render() -> Canvas {
var canvas = Canvas(self.camera.horizontalSize, self.camera.verticalSize)
for y in 0..<self.camera.verticalSize {
Expand Down

0 comments on commit a0c3cf9

Please sign in to comment.