Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

Material

ousttrue edited this page Aug 7, 2018 · 20 revisions
Import Exporrt
PBR 🙆
UNLIT - -

PBR

StandardShader

Unity RenderType Tag glTFのmaterial.alphaModeプロパティ
Opaque OPAQUE (デフォルトなので出力は不要)
Transparent BLEND
TransparentCutout MASK

ToUnity

ToGLTF

Unlit

https://github.com/KhronosGroup/glTF/blob/master/extensions/2.0/Khronos/KHR_materials_unlit/README.md

"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 Shader(Render Type) KHR_materials_unlit material.alphaCutoff
Unlit/Texture or Unlit/Color enable OPAQUE
Unlit/Transparent enable BLEND
Unlit/Transparent Cutout enable MASK
Standard(Opaque) disable OPAQUE
Standard(Transparent) disable BLEND
Standard(Cutout) disable MASK

Material Requirement

  • baseColorFactor(White)

  • metallicFactor(0)

  • roughnessFactor(1)

  • baseColorTexture(White)

  • double Sided(false)

  • alphaMode OPAQUE, BLEND, MASK(OPAQUE)

  • emissiveFactor(0, 0, 0)

  • vertexColor ?

Clone this wiki locally