Skip to content

Commit

Permalink
version 0.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
izayoijiichan committed Jan 23, 2020
1 parent b348096 commit 94a920b
Show file tree
Hide file tree
Showing 174 changed files with 11,327 additions and 873 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## [0.7.0] - 2020-01-23
- Added `VGO_materials_particle` property to materials extension.
- Added `particleSystem` property to VGO_nodes extension.

## [0.6.1] - 2020-01-20
- Refactored source code

Expand Down
254 changes: 254 additions & 0 deletions Documentation~/VGO/instructions/schema.json.materials.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,254 @@
# VGO materials

## JSON schema of glTF

### glTF.materials.[*].extensions

|definition name|description|type|
|:---|:---|:---|
|VGO_materials|VGO material information|VGO_materials|
|VGO_materials_particle|Particle material information|VGO_materials_particle|
|KHR_materials_unlit|Unlit material information|KHR_materials_unlit|
|VRMC_materials_mtoon|MToon material information|VRMC_materials_mtoon|

### VGO_materials

|definition name|description|type|setting value|default value|
|:---|:---|:---:|:---:|:---:|
|shaderName|The name of shader.|string|||

### VGO_materials_particle

|definition name|description|type|setting value|default value|
|:---|:---|:---:|:---:|:---:|
|renderMode||string|Opaque / Cutout / Fade / Transparent / Additive / Subtractive / Modulate|Opaque|
|colorMode||string|Multiply / Additive / Subtractive / Overlay / Color/ Difference|Multiply|
|flipBookMode||string|Simple / Blended|Simple|
|cullMode||string|Off / (Front) / Back|Off|
|softParticlesEnabled||bool|true / false|false|
|softParticleFadeParams||float[4]|||
|cameraFadingEnabled||bool|true / false|false|
|cameraFadeParams||float[4]|||
|distortionEnabled||bool|true / false|false|
|grabTextureIndex||int|||
|distortionStrengthScaled||float|[0.0, 1.0]||
|distortionBlend||float|[0.0, 1.0]||
|colorAddSubDiff||float[4]|r, g, b, a||
|mainTexIndex||int|||
|mainTexSt||float[4]|||
|color||float[4]|r, g, b, a||
|cutoff||float|[0.0, 1.0]||
|metallicGlossMapIndex||int|||
|metallic||float|[0.0, 1.0]||
|glossiness||float|[0.0, 1.0]||
|bumpMapIndex||int|||
|bumpScale||float|[0.0, 1.0]||
|lightingEnabled||bool|true / false||
|emissionEnabled||bool|true / false||
|emissionColor||float[3]|r, g, b||
|emissionMapIndex||int|||

### KHR_materials_unlit

|definition name|description|type|setting value|default value|
|:---|:---|:---:|:---:|:---:|

https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_materials_unlit

### VRMC_materials_mtoon

|definition name|description|type|setting value|default value|
|:---|:---|:---:|:---:|:---:|
|version||string||32|
|renderMode||string|opaque / cutout / transparent / transparentWithZWrite|opaque|
|cullMode||string|off / flont / back|off|
|renderQueueOffsetNumber||int|||
|litFactor||float[4]|r, g, b, a||
|litMultiplyTexture||int|||
|shadeFactor||float[4]|r, g, b, a||
|shadeMultiplyTexture||int|||
|cutoutThresholdFactor||float|[0.0, 1.0]||
|shadingShiftFactor||float|[-1.0, 1.0]||
|shadingToonyFactor||float|[0.0, 1.0]||
|shadowReceiveMultiplierFactor||float|[0.0, 1.0]||
|shadowReceiveMultiplierMultiplyTexture||int|||
|litAndShadeMixingMultiplierFactor||float|[0.0, 1.0]||
|litAndShadeMixingMultiplierMultiplyTexture||int|||
|lightColorAttenuationFactor||float|[0.0, 1.0]||
|giIntensityFactor||float|[0.0, 1.0]||
|normalTexture||int|||
|normalScaleFactor||float|||
|emissionFactor||float[3]|r, g, b||
|emissionMultiplyTexture||int|||
|additiveTexture||int|||
|rimFactor||float[4]|r, g, b, a||
|rimMultiplyTexture||int|||
|rimLightingMixFactor||float|[0.0, 1.0]||
|rimFresnelPowerFactor||float|[0.0, 100.0]||
|rimLiftFactor||float|[0.0, 1.0]||
|outlineWidthMode||string|none / worldCoordinates / screenCoordinates|none|
|outlineWidthFactor||float|[0.01, 1.0]||
|outlineWidthMultiplyTexture||int|||
|outlineScaledMaxDistanceFactor||float|[1.0, 10.0]||
|outlineColorMode||string|fixedColor / mixedLighting|fixedColor|
|outlineFactor||float[4]|r, g, b, a||
|outlineLightingMixFactor||float|[0.0, 1.0]||
|mainTextureLeftBottomOriginScale||float[2]|x, y||
|mainTextureLeftBottomOriginOffset||float[2]|x, y||
|uvAnimationMaskTexture||int|||
|uvAnimationScrollXSpeedFactor||float|||
|uvAnimationScrollYSpeedFactor||float|||
|uvAnimationRotationSpeedFactor||float|||

https://github.com/vrm-c/vrm-specification

___
## Example of glTF JSON structure

### glTF.materials.[*].extensions

```json
JSON{
"materials": [
{
"name": "UnlitMaterial1",
"pbrMetallicRoughness": {
"baseColorTexture": {
"index": 0,
"texCoord": 0
},
"baseColorFactor": [ 1, 1, 1, 1 ],
"metallicFactor": 0,
"roughnessFactor": 0.9
},
"alphaMode": "OPAQUE",
"alphaCutoff": 0.5,
"doubleSided": false,
"extensions": {
"VGO_materials":{
"shaderName":"Unlit/Texture"
},
"KHR_materials_unlit": {}
},
"extras": {}
},
{
"name": "MtoonMaterial1",
"pbrMetallicRoughness": {
"baseColorTexture": {
"index": 0,
"texCoord": 0
},
"baseColorFactor": [ 1, 1, 1, 1 ],
"metallicFactor": 0,
"roughnessFactor": 0.9
},
"alphaMode": "OPAQUE",
"alphaCutoff": 0.5,
"doubleSided": false,
"extensions": {
"VGO_materials":{
"shaderName":"VRM/MToon"
},
"VRMC_materials_mtoon":{
"version":"32",
"renderMode":"opaque",
"cullMode":"back",
"renderQueueOffsetNumber":0,
"litFactor":[ 0.811,0.916,0.723,1.0 ],
"litMultiplyTexture":0,
"shadeFactor":[ 0.933,0.620,0.711,1.0 ],
"shadeMultiplyTexture":-1,
"cutoutThresholdFactor":0.5,
"shadingShiftFactor":0.0,
"shadingToonyFactor":0.9,
"shadowReceiveMultiplierFactor":1.0,
"shadowReceiveMultiplierMultiplyTexture":-1,
"litAndShadeMixingMultiplierFactor":1.0,
"litAndShadeMixingMultiplierMultiplyTexture":-1,
"lightColorAttenuationFactor":0.0,
"giIntensityFactor":0.1,
"normalTexture":-1,
"normalScaleFactor":1.0,
"emissionFactor":[ 0.0,0.0,0.0,1.0 ],
"emissionMultiplyTexture":-1,
"additiveTexture":-1,
"rimFactor":[ 0.0,0.0,0.0,1.0 ],
"rimMultiplyTexture":-1,
"rimLightingMixFactor":0.0,
"rimFresnelPowerFactor":1.0,
"rimLiftFactor":0.0,
"outlineWidthMode":"screenCoordinates",
"outlineWidthFactor":0.5,
"outlineWidthMultiplyTexture":-1,
"outlineScaledMaxDistanceFactor":1.0,
"outlineColorMode":"fixedColor",
"outlineFactor":[ 0.0,0.0,0.0,1.0 ],
"outlineLightingMixFactor":1.0,
"mainTextureLeftBottomOriginScale":[ 1.0,1.0 ],
"mainTextureLeftBottomOriginOffset":[ 0.0,0.0 ],
"uvAnimationMaskTexture":-1,
"uvAnimationScrollXSpeedFactor":0.0,
"uvAnimationScrollYSpeedFactor":0.0,
"uvAnimationRotationSpeedFactor":0.0
}
},
"extras": {}
},
{
"name": "ParticleMaterial1",
"pbrMetallicRoughness": {
"baseColorTexture": {
"index": 0,
"texCoord": 0
},
"baseColorFactor": [ 1, 1, 1, 1 ],
"metallicFactor": 0,
"roughnessFactor": 0.9
},
"alphaMode": "OPAQUE",
"alphaCutoff": 0.5,
"doubleSided": false,
"extensions": {
"VGO_materials":{
"shaderName":"Particles/Standard Surface"
},
"VGO_materials_particle":{
"renderMode":"Fade",
"colorMode":"Multiply",
"flipBookMode":"Simple",
"cullMode":"Back",
"softParticlesEnabled":true,
"softParticleFadeParams":[ 0.0,1.0,0.0,0.0 ],
"cameraFadingEnabled":true,
"cameraFadeParams":[ 1.0,1.0,0.0,0.0 ],
"grabTextureIndex":-1,
"distortionEnabled":true,
"distortionStrengthScaled":0.1,
"distortionBlend":0.5,
"colorAddSubDiff":[ 0.0,0.0,0.0,0.0 ],
"mainTexIndex":4,
"mainTexSt":[ 1.0,1.0,0.0,0.0 ],
"color":[ 0.0,0.0,0.0,1.0 ],
"cutoff":1.0,
"metallicGlossMapIndex":-1,
"metallic":0.0,
"glossiness":0.5,
"bumpMapIndex":-1,
"bumpScale":1.0,
"lightingEnabled":true,
"emissionEnabled":true,
"emissionColor":[ 1.0,0.0,1.0,1.0 ],
"emissionMapIndex":-1,
}
},
"extras": {}
}
]
}
```
___
Last updated: 23 January, 2020
Editor: Izayoi Jiichan

*Copyright (C) 2020 Izayoi Jiichan. All Rights Reserved.*
114 changes: 114 additions & 0 deletions Documentation~/VGO/instructions/schema.json.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
# VGO

## JSON schema of glTF

### glTF.extensionsUsed

|Definition name|Description|
|:---|:---|
|VGO|Declaration to use VGO.|
|VGO_nodes|Declaration to use VGO_nodes.|
|VGO_materials|Declaration to use VGO_materials.|
|VGO_materials_particle|Declares that Particle shaders can be used for materials.|
|KHR_materials_unlit|Declares that Unlit shaders can be used for materials.|
|VRMC_materials_mtoon|Declares that MToon shaders can be used for materials.|

### glTF.extensionsRequired

|Definition name|Description|
|:---|:---|
|VGO|Requires support for VGO extensions.|
|VGO_nodes|Requires support for VGO_nodes extension.|
|VGO_materials|Requires support for VGO_materials extension.|
|VGO_materials_particle|Requires support for the VGO_materials_particle extension.|
|KHR_materials_unlit|Requires support for the KHR_materials_unlit extension.|
|VRMC_materials_mtoon|Requires support for the VRMC_materials_mtoon extension.|

### glTF.extensions

|definition name|description|type|
|:---|:---|:---|
|VGO|VGO information|glTF.extensions.VGO|

### glTF.extensions.VGO

|definition name|description|type|
|:---|:---|:---|
|meta|VGO meta information|vgo.meta|
|right|VGO rights information|vgo.right|

### vgo.meta

|definition name|description|type|fixed value|
|:---|:---|:---:|:---:|
|generatorName|The name of the generation tool.|string|UniVGO|
|generatorVersion|The generation tool version.|string|0.7.0|
|specVersion|VGO specification version.|string|0.5|

### vgo.right

|definition name|description|type|remarks|
|:---|:---|:---:|:---|
|title|The name of the work.|string|Required|
|author|The name of the creator.|string|Required|
|organization|The organization to which the creator belongs.|string||
|createdDate|The creation date of the work.|string|There is no format specification.|
|updatedDate|The update date of the work.|string|There is no format specification.|
|version|The version of the work.|string|There is no format specification.|
|distributionUrl|Distribution URL.|string|URL format|
|licenseUrl|The URL where the license is written.|string|URL format|

___
## Example of glTF JSON structure


### glTF.extensions
```json
JSON{
"asset": {
},
"buffers": [
],
"extensionsUsed": [
"VGO",
"VGO_nodes",
"VGO_materials",
"VGO_materials_particle",
"KHR_materials_unlit",
"VRMC_materials_mtoon"
],
"extensionsRequired": [
"VGO",
"VGO_nodes",
"VGO_materials",
"VGO_materials_particle",
"KHR_materials_unlit",
"VRMC_materials_mtoon"
],
"extensions": {
"VGO": {
"meta": {
"generatorName": "UniVGO",
"generatorVersion": "0.7.0",
"specVersion": "0.5"
},
"right": {
"title": "Test Stage",
"author": "Izayoi Jiichan",
"organization": "Izayoi",
"createdDate": "2020-01-01",
"updatedDate": "2020-01-23",
"version": "1.4",
"distributionUrl": "https://github.com/izayoijiichan/VGO",
"licenseUrl": "https://github.com/izayoijiichan/VGO/blob/master/UniVgo/LICENSE.md"
}
}
},
"extras": {}
}
```
___
Last updated: 23 January, 2020
Editor: Izayoi Jiichan

*Copyright (C) 2020 Izayoi Jiichan. All Rights Reserved.*
Loading

0 comments on commit 94a920b

Please sign in to comment.