This repository has been archived by the owner on Sep 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 63
Material
ousttrue edited this page Aug 7, 2018
·
20 revisions
Import | Exporrt | |
---|---|---|
PBR | 🙆 | △ |
UNLIT | - | - |
StandardShader
Unity RenderType Tag | glTFのmaterial.alphaModeプロパティ |
---|---|
Opaque | OPAQUE (デフォルトなので出力は不要) |
Transparent | BLEND |
TransparentCutout | MASK |
"materials": [
{
"name": "red_unlit_material",
"pbrMetallicRoughness": {
"baseColorFactor": [ 1.0, 0.0, 0.0, 1.0 ] // baseColor
},
"extensions": {
"KHR_materials_unlit": {} // flag. treat as unlit
}
},
{
"name": "unlit_with_fallback",
"pbrMetallicRoughness": {
"baseColorFactor": [ 1.0, 1.0, 1.0, 1.0 ],
"baseColorTexture": { "index": 0 },
"roughnessFactor": 0.9,
"metallicFactor": 0.0
},
"extensions": {
"KHR_materials_unlit": {}
}
}
]
Unity | KHR_materials_unlit | material.alphaCutoff |
---|---|---|
Unlit/Texture | enable | OPAQUE |
Unlit/Transparent | enable | BLEND |
Unlit/Transparent Cutout | enable | MASK |
Standard(Opaque) | disable | OPAQUE |
Standard(Transparent) | disable | BLEND |
Standard(Cutout) | disable | MASK |