Skip to content

Commit

Permalink
Added glTF Sample model
Browse files Browse the repository at this point in the history
  • Loading branch information
cx20 committed Jan 11, 2025
1 parent 545168f commit e04efbe
Show file tree
Hide file tree
Showing 10 changed files with 649 additions and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,7 @@ function makeTutorialExtensionTestModelLinks() {
|| modelName == 'MaterialsVariantsChair'
|| modelName == 'MaterialsVariantsShoe'
|| modelName == 'MosquitoInAmber'
|| modelName == 'PointLightIntensityTest'
|| modelName == 'PotOfCoals'
|| modelName == 'PotOfCoalsAnimationPointer'
|| modelName == 'SheenChair'
Expand Down
24 changes: 24 additions & 0 deletions tutorialModels/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

0 comments on commit e04efbe

Please sign in to comment.