diff --git a/2.0/Lights/README.md b/2.0/Lights/README.md new file mode 100644 index 00000000..5d37c477 --- /dev/null +++ b/2.0/Lights/README.md @@ -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/)) diff --git a/2.0/Lights/glTF-Binary/Lights.glb b/2.0/Lights/glTF-Binary/Lights.glb new file mode 100644 index 00000000..d6b5ffd4 Binary files /dev/null and b/2.0/Lights/glTF-Binary/Lights.glb differ diff --git a/2.0/Lights/glTF/Lights.gltf b/2.0/Lights/glTF/Lights.gltf new file mode 100644 index 00000000..a5ee39b7 --- /dev/null +++ b/2.0/Lights/glTF/Lights.gltf @@ -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 + ] + } + ] +} diff --git a/2.0/Lights/glTF/light.bin b/2.0/Lights/glTF/light.bin new file mode 100644 index 00000000..9bc94128 Binary files /dev/null and b/2.0/Lights/glTF/light.bin differ diff --git a/2.0/Lights/screenshot/screenshot.png b/2.0/Lights/screenshot/screenshot.png new file mode 100644 index 00000000..218ea7b4 Binary files /dev/null and b/2.0/Lights/screenshot/screenshot.png differ diff --git a/2.0/README.md b/2.0/README.md index a012b8fb..dd94dc6a 100644 --- a/2.0/README.md +++ b/2.0/README.md @@ -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. | diff --git a/2.0/model-index.json b/2.0/model-index.json index da208318..64bf0a03 100644 --- a/2.0/model-index.json +++ b/2.0/model-index.json @@ -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", diff --git a/sourceModels/Lights/Lights.blend b/sourceModels/Lights/Lights.blend new file mode 100644 index 00000000..6fc11ded Binary files /dev/null and b/sourceModels/Lights/Lights.blend differ