evanw / evanw/theta

Where does these magic numbers come from

Open
#7 1 comment 3 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
795
Forks
39
PR merge metrics
No merged PRs in 30d

Description

Hi, sorry for so many questions.

Where does these magic numbers come from?

```
const JITTER_PATTERN = [
Vector.new(-1 / 12.0, -5 / 12.0),
Vector.new( 1 / 12.0, 1 / 12.0),
Vector.new( 3 / 12.0, -1 / 12.0),
Vector.new( 5 / 12.0, 5 / 12.0),
Vector.new( 7 / 12.0, -3 / 12.0),
Vector.new( 9 / 12.0, 3 / 12.0),
]
```

In your post, you mentioned this:
`We can easily get four samples per pixel by rendering the same set of triangles four times, each time with a slightly different offset and using a color with a different channel each time.`

`slightly different offset` refer to these magic number above? If yes, how can I create this numbers?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.