Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

KHR_lights_punctual model #210

Closed
wants to merge 5 commits into from
Closed
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
16 changes: 16 additions & 0 deletions 2.0/Lights/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Lights

|No|object name|type|color|intensity|
|--- |--- |--- |--- |--- |
|1|Light|point|[1,0,0]|5|
|2|Spot|spot|[0.1,0]|10|
|3|Spot.001|spot|[0,0,1]|10|
|4|Sun|directional|[0,1,1]|1|

## Screenshot

![screenshot](screenshot/screenshot.png)

## License Information

Public domain ([CC0](https://creativecommons.org/publicdomain/zero/1.0/))
Binary file added 2.0/Lights/glTF-Binary/Lights.glb
Binary file not shown.
340 changes: 340 additions & 0 deletions 2.0/Lights/glTF/Lights.gltf
Original file line number Diff line number Diff line change
@@ -0,0 +1,340 @@
{
"accessors" : [
{
"bufferView" : 0,
"componentType" : 5126,
"count" : 24,
"max" : [
1,
1,
1
],
"min" : [
-1,
-1,
-1
],
"type" : "VEC3"
},
{
"bufferView" : 1,
"componentType" : 5126,
"count" : 24,
"type" : "VEC3"
},
{
"bufferView" : 2,
"componentType" : 5126,
"count" : 24,
"type" : "VEC2"
},
{
"bufferView" : 3,
"componentType" : 5121,
"count" : 36,
"type" : "SCALAR"
}
],
"asset" : {
"generator" : "Khronos Blender glTF 2.0 I/O",
"version" : "2.0"
},
"bufferViews" : [
{
"buffer" : 0,
"byteLength" : 288,
"byteOffset" : 0
},
{
"buffer" : 0,
"byteLength" : 288,
"byteOffset" : 288
},
{
"buffer" : 0,
"byteLength" : 192,
"byteOffset" : 576
},
{
"buffer" : 0,
"byteLength" : 36,
"byteOffset" : 768
}
],
"buffers" : [
{
"byteLength" : 804,
"uri" : "light.bin"
}
],
"cameras" : [
{
"name" : "Camera",
"perspective" : {
"yfov" : 0.39959648408210363,
"zfar" : 100,
"znear" : 0.10000000149011612
},
"type" : "perspective"
}
],
"extensions" : {
"KHR_lights_punctual" : {
"lights" : [
{
"color" : [
1,
0,
0
],
"intensity" : 5,
"name" : "Light",
"type" : "point"
},
{
"color" : [
0,
1,
0
],
"intensity" : 10,
"name" : "Spot",
"spot" : {
"innerConeAngle" : 0.3337942263919169,
"outerConeAngle" : 0.39269909262657166
},
"type" : "spot"
},
{
"color" : [
0,
0,
1
],
"intensity" : 10,
"name" : "Spot.001",
"spot" : {
"innerConeAngle" : 0.06686909002858688,
"outerConeAngle" : 0.07866951823234558
},
"type" : "spot"
},
{
"color" : [
0,
1,
1
],
"intensity" : 1.0000003576278687,
"name" : "Sun",
"type" : "directional"
}
]
}
},
"extensionsRequired" : [
"KHR_lights_punctual"
],
"extensionsUsed" : [
"KHR_lights_punctual"
],
"materials" : [
{
"name" : "Material",
"pbrMetallicRoughness" : {
"baseColorFactor" : [
0.800000011920929,
0.800000011920929,
0.800000011920929,
1
],
"metallicFactor" : 0,
"roughnessFactor" : 0.5
}
}
],
"meshes" : [
{
"name" : "Cube",
"primitives" : [
{
"attributes" : {
"NORMAL" : 1,
"POSITION" : 0,
"TEXCOORD_0" : 2
},
"indices" : 3,
"material" : 0
}
]
}
],
"nodes" : [
{
"mesh" : 0,
"name" : "Cube"
},
{
"extensions" : {
"KHR_lights_punctual" : {
"light" : 0
}
},
"name" : "Light_Orientation",
"rotation" : [
-0.7071067690849304,
0,
0,
0.7071067690849304
]
},
{
"children" : [
1
],
"extensions" : {},
"name" : "Light",
"rotation" : [
0.16907575726509094,
0.7558802962303162,
-0.27217137813568115,
0.570947527885437
],
"scale" : [
1,
1,
0.9999999403953552
],
"translation" : [
2.598804473876953,
3.5685081481933594,
-1.0054539442062378
]
},
{
"camera" : 0,
"name" : "Camera_Orientation",
"rotation" : [
-0.7071067690849304,
0,
0,
0.7071067690849304
]
},
{
"children" : [
3
],
"name" : "Camera",
"rotation" : [
0.483536034822464,
0.33687159419059753,
-0.20870360732078552,
0.7804827094078064
],
"translation" : [
7.358891487121582,
4.958309173583984,
6.925790786743164
]
},
{
"extensions" : {
"KHR_lights_punctual" : {
"light" : 1
}
},
"name" : "Spot_Orientation",
"rotation" : [
-0.7071067690849304,
0,
0,
0.7071067690849304
]
},
{
"children" : [
5
],
"extensions" : {},
"name" : "Spot",
"translation" : [
-0.27057111263275146,
1.9432672262191772,
0.3526574969291687
]
},
{
"extensions" : {
"KHR_lights_punctual" : {
"light" : 2
}
},
"name" : "Spot.001_Orientation",
"rotation" : [
-0.7071067690849304,
0,
0,
0.7071067690849304
]
},
{
"children" : [
7
],
"extensions" : {},
"name" : "Spot.001",
"translation" : [
0,
6.1562676429748535,
0
]
},
{
"extensions" : {
"KHR_lights_punctual" : {
"light" : 3
}
},
"name" : "Sun_Orientation",
"rotation" : [
-0.7071067690849304,
0,
0,
0.7071067690849304
]
},
{
"children" : [
9
],
"extensions" : {},
"name" : "Sun",
"rotation" : [
0.6230779886245728,
-0.011956790462136269,
-0.018184810876846313,
0.781856894493103
],
"translation" : [
0.049726784229278564,
0.8518845438957214,
5.594457626342773
]
}
],
"scene" : 0,
"scenes" : [
{
"name" : "Scene",
"nodes" : [
0,
2,
4,
6,
8,
10
]
}
]
}
Binary file added 2.0/Lights/glTF/light.bin
Binary file not shown.
Binary file added 2.0/Lights/screenshot/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions 2.0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,4 @@
| [SpecGloss Vs MetalRough](SpecGlossVsMetalRough) | ![](SpecGlossVsMetalRough/screenshot/screenshot.jpg) | Tests if the KHR_materials_pbrSpecularGlossiness extension is supported properly. |
| [Texture Transform Test](TextureTransformTest) | ![](TextureTransformTest/screenshot/screenshot.jpg) | Tests if the KHR_texture_transform extension is supported properly. |
| [Unlit Test](UnlitTest) | ![](UnlitTest/screenshot/screenshot.png) | Tests if the KHR_materials_unlit extension is supported properly. |
| [Lights](Lights) | ![](Lights/screenshot/screenshot.png) | Tests if the KHR_lights_punctual extension is supported properly. |
8 changes: 8 additions & 0 deletions 2.0/model-index.json
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,14 @@
"glTF-pbrSpecularGlossiness": "Lantern.gltf"
}
},
{
"name": "Lights",
"screenshot": "screenshot/screenshot.png",
"variants": {
"glTF": "Lights.gltf",
"glTF-Binary": "Lights.glb"
}
},
{
"name": "MetalRoughSpheres",
"screenshot": "screenshot/screenshot.png",
Expand Down
Binary file added sourceModels/Lights/Lights.blend
Binary file not shown.