Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a test of light intensity vs. color #163

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions Models/PointLightIntensityTest/README.body.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
## Screenshot

![screenshot](screenshot/screenshot-large.jpg)

## Description

This model tests various colors of point lights (via `KHR_lights_punctual`) that all share the same intensity (1.0).

It is intended to serve as a test for the following clarification that was added to the `KHR_lights_punctual` extension:

> The `intensity` represents the luminous intensity that the light would emit if it were colored pure white (`[1.0, 1.0, 1.0]`). The `color` property acts as a wavelength-specific multiplier.

In other words, the specified color works as a "filter" in front of a light source of the specified intensity.

The test material in each case is (0.8, 0.8, 0.8). The lights are as follows:

| Label | Color |
|-------|-------|
| Red | (1.0, 0.0, 0.0) |
| Green | (0.0, 1.0, 0.0) |
| Blue | (0.0, 0.0, 1.0) |
| Red + Green + Blue | Three colocated lights, matching the above |
| White | (1.0, 1.0, 1.0) |
| Gray | (0.5, 0.5, 0.5) |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Loading