Skip to content

Commit 575b0f9

Browse files
- Moved OpenAPI schemas to the schemas folder
- Updated Lightsources - Updated Materials - Updated Lightsources schema v2 - Updated Materials schemas
1 parent 79cf6d4 commit 575b0f9

11 files changed

+888
-259
lines changed

deploy/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
<body>
5555
<!-- apiDescriptionUrl must point to a web resource, and not to a static file, so it doesn't give an error when going back and forth on the site -->
5656
<elements-api
57-
apiDescriptionUrl="https://raw.githubusercontent.com/AntonPalmqvist/physically-based-api/refs/heads/main/deploy/openapi-schema.yaml"
57+
apiDescriptionUrl="https://raw.githubusercontent.com/AntonPalmqvist/physically-based-api/refs/heads/main/schemas/openapi-schema.yaml"
5858
hideSchemas="true"
5959
hideExport="true"
6060
layout="responsive"

deploy/lightsources.json

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,20 @@
55
"temperature": 5600,
66
"temperatureRange": [2500, 7500],
77
"intensity": 19389,
8+
"sourceSize": [4],
89
"variants": [
910
{
1011
"format": "Bare Bulb",
1112
"color": [1.0, 0.859, 0.778],
1213
"temperature": 5600,
13-
"angle": 90,
14+
"angle": 89.6,
1415
"intensity": 17244
1516
},
1617
{
1718
"format": "Hyper Reflector",
1819
"color": [1.0, 0.859, 0.778],
1920
"temperature": 5600,
20-
"angle": 65,
21+
"angle": 64.8,
2122
"intensity": 26155
2223
}
2324
],
@@ -55,6 +56,7 @@
5556
"temperature": 5600,
5657
"temperatureRange": [1800, 20000],
5758
"intensity": 600000,
59+
"sourceSize": [4],
5860
"variants": [
5961
{
6062
"format": "No Reflector",
@@ -96,6 +98,7 @@
9698
"color": [1.0, 0.859, 0.778],
9799
"temperature": 5600,
98100
"temperatureRange": [2500, 10000],
101+
"sourceSize": [4],
99102
"intensity": 202500,
100103
"variants": [
101104
{
@@ -252,13 +255,35 @@
252255
"temperature": 3500,
253256
"intensity": 1500,
254257
"intensityRange": [1000, 2000],
258+
"sourceSize": [5],
259+
"angle": 15,
255260
"unit": ["lm"],
256261
"type": ["spot"],
257262
"category": ["Artificial"],
258263
"description": "Tungsten-halogen bulbs, commonly just called halogen, are the most widely used bulbs in car headlights. High beam is approximately double the intensity of a low beam.",
259264
"sources": [
260265
"https://www.bulbfacts.com/halogen-bulbs/chart/",
261-
"https://en.wikipedia.org/wiki/Headlamp#Light_sources"
266+
"https://en.wikipedia.org/wiki/Headlamp#Light_sources",
267+
"https://www.onallcylinders.com/2015/02/27/light-source-quick-guide-automotive-lighting/"
268+
]
269+
},
270+
{
271+
"name": "Car Headlight (LED)",
272+
"color": [1.0, 0.792, 0.628],
273+
"temperature": 3500,
274+
"temperatureRange": [5000, 6000],
275+
"intensity": 3000,
276+
"intensityRange": [2000, 5000],
277+
"sourceSize": [5],
278+
"angle": 15,
279+
"unit": ["lm"],
280+
"type": ["spot"],
281+
"category": ["Artificial"],
282+
"description": "",
283+
"sources": [
284+
"https://www.bulbfacts.com/led-kits/chart/",
285+
"https://en.wikipedia.org/w/index.php?title=Headlamp&oldid=1274156171#Light_sources",
286+
"https://www.onallcylinders.com/2015/02/27/light-source-quick-guide-automotive-lighting/"
262287
]
263288
},
264289
{
@@ -350,6 +375,7 @@
350375
"temperature": 1850,
351376
"intensity": 50,
352377
"intensityRange": [8, 100],
378+
"sourceSize": [1],
353379
"unit": ["lm"],
354380
"type": ["point"],
355381
"category": ["Natural"],
@@ -415,6 +441,8 @@
415441
"color": [1.0, 0.849, 0.754],
416442
"temperature": 5500,
417443
"intensity": 20000,
444+
"sourceSize": [5],
445+
"angle": 60,
418446
"unit": ["lm"],
419447
"type": ["spot"],
420448
"category": ["Artificial"],
@@ -508,6 +536,8 @@
508536
"temperature": 0,
509537
"intensity": 60000,
510538
"intensityRange": [2000, 140000],
539+
"sourceSize": [5],
540+
"angle": 60,
511541
"unit": ["lm"],
512542
"type": ["spot"],
513543
"category": ["Artificial"],

0 commit comments

Comments
 (0)