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 Jul 31, 2018
·
20 revisions
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 |
---|---|
Unlit/Color | |
Unlit/Texture | |
Unlit/Transparent | |
Unlit/Transparent Cutout | material.alphaCutoff |