Skip to content

Commit 8aeda4d

Browse files
committed
Updates and fixes for MPEG light extensions.
1 parent 7518a4d commit 8aeda4d

5 files changed

Lines changed: 72 additions & 32 deletions

File tree

.github/COWORKERS

Lines changed: 0 additions & 1 deletion
This file was deleted.

extensions/2.0/Vendor/MPEG_lighting/README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,12 @@ Table 3: Definitions of objects at the scene level of MPEG_lights_texture_based
6161
When present, the MPEG_lights_punctual extension shall be included as a glTF file level extension.
6262
The definition of all objects within MPEG_lights_punctual extension is provided in Table 4.
6363

64-
Table 4 – Definition of glTF file objects of MPEG_lights_punctual extension
64+
Table 4: Definitions of glTF file level objects of MPEG_lights_punctual extension
65+
| Name | Type | Usage | Default | Description |
66+
|--|--|--|--|--|
67+
| lights | array | M | | An array of items that describe the punctual light sources, referenced in this scene description document. |
68+
69+
Table 5: Definitions of item in the lights array of MPEG_lights_punctual extension
6570
| Name | Type | Usage | Default | Description |
6671
|--|--|--|--|--|
6772
| light | integer | M | | Index of the item in the array of the lights parameter of the KHR_lights_punctual extension |
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"type": "object",
4+
"required": ["light", "nature"],
5+
"properties": {
6+
"light": {
7+
"type": "integer",
8+
"description": "Index of the item in the array of the lights parameter of the KHR_lights_punctual extension"
9+
},
10+
"nature": {
11+
"type": "string",
12+
"enum": ["PHYSICAL", "VIRTUAL", "PHYSICAL_VIRTUAL", "UNSPECIFIED"],
13+
"description": "Indicates whether the lighting information corresponds to physical, virtual, both, or unspecified light",
14+
"enumDescriptions": {
15+
"PHYSICAL": "A physical light",
16+
"VIRTUAL": "A virtual light",
17+
"PHYSICAL_VIRTUAL": "Both physical and virtual",
18+
"UNSPECIFIED": "Unknown"
19+
}
20+
},
21+
"color_accessor": {
22+
"type": "integer",
23+
"description": "Reference to the accessor giving a sequence of color value. If absent, the value in the referenced light is considered constant."
24+
},
25+
"intensity_accessor": {
26+
"type": "integer",
27+
"description": "Reference to the accessor giving a sequence of intensity value. If absent, the value in the referenced light is considered constant."
28+
},
29+
"range_accessor": {
30+
"type": "integer",
31+
"description": "Reference to the accessor giving a sequence of range value. If absent, the value in the referenced light is considered constant."
32+
}
33+
}
34+
}
Lines changed: 14 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,18 @@
11
{
2-
"$schema": "http://json-schema.org/draft-07/schema#",
2+
"$schema" : "http://json-schema.org/draft-07/schema",
3+
"title": "glTF_MPEG_lights_punctual_extension",
34
"type": "object",
4-
"required": ["light", "nature"],
5+
"description": "Provides a list of punctual light objects.",
56
"properties": {
6-
"light": {
7-
"type": "integer",
8-
"description": "Index of the item in the array of the lights parameter of the KHR_lights_punctual extension"
9-
},
10-
"nature": {
11-
"type": "string",
12-
"enum": ["PHYSICAL", "VIRTUAL", "PHYSICAL_VIRTUAL", "UNSPECIFIED"],
13-
"description": "Indicates whether the lighting information corresponds to physical, virtual, both, or unspecified light",
14-
"enumDescriptions": {
15-
"PHYSICAL": "A physical light",
16-
"VIRTUAL": "A virtual light",
17-
"PHYSICAL_VIRTUAL": "Both physical and virtual",
18-
"UNSPECIFIED": "Unknown"
7+
"lights": {
8+
"type": "array",
9+
"description": "An array of items that describe the punctual light sources, referenced in this scene description document.",
10+
"items": {
11+
"type": "object",
12+
"$ref": "MPEG_lights_punctual.light.schema.json"
13+
},
14+
"minItems": 1
1915
}
20-
},
21-
"color_accessor": {
22-
"type": "integer",
23-
"description": "Reference to the accessor giving a sequence of color value. If absent, the value in the referenced light is considered constant."
24-
},
25-
"intensity_accessor": {
26-
"type": "integer",
27-
"description": "Reference to the accessor giving a sequence of intensity value. If absent, the value in the referenced light is considered constant."
28-
},
29-
"range_accessor": {
30-
"type": "integer",
31-
"description": "Reference to the accessor giving a sequence of range value. If absent, the value in the referenced light is considered constant."
32-
}
33-
}
34-
}
16+
},
17+
"required": ["lights"]
18+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"$schema" : "http://json-schema.org/draft-07/schema",
3+
"title": "glTF_MPEG_lights_texture_based_extension",
4+
"type": "object",
5+
"description": "Provides a list of texture based light objects.",
6+
"properties": {
7+
"lights": {
8+
"type": "array",
9+
"description": "Provides a list of texture based light objects.",
10+
"items": {
11+
"type": "object",
12+
"$ref": "MPEG_lights_texture_based.light.schema.json"
13+
},
14+
"minItems": 1
15+
}
16+
},
17+
"required": ["lights"]
18+
}

0 commit comments

Comments
 (0)