跳转至

未命名

文档版本:1.21.0.24

架构

texture_set:
{
  format_version "format_version"
  object "minecraft:texture_set" : opt
  {
    string "color" : opt
    array "color" : opt
    {
      integer "0..0" : opt
      integer "1..1" : opt
      integer "2..2" : opt
      integer "3..3" : opt
    }
    string "heightmap" : opt
    integer "heightmap" : opt
    string "metalness_emissive_roughness" : opt
    array "metalness_emissive_roughness" : opt
    {
      integer "0..0" : opt
      integer "1..1" : opt
      integer "2..2" : opt
    }
    string "normal" : opt
  }
}
format_versionformat_version
format_version:
string
minecraft:texture_setobject
Texture Sets are used to define multiple PBR layers for a texture resource.
minecraft:texture_set
colorstring
This is an RGB 3-channel image (defaults to uniform alpha of 1.0), or an RGBA 4-channel image, or a 4 value array for a uniform color with alpha.
colorarray
This is an RGB 3-channel image (defaults to uniform alpha of 1.0), or an RGBA 4-channel image, or a 4 value array for a uniform color with alpha.
color
0..0integer
1..1integer
2..2integer
3..3integer
heightmapstring
1-channel layer image or a single value in this JSON file for a uniform heightmap. This layer and the "normal" layer should not both be defined at the same time.
heightmapinteger
1-channel layer image or a single value in this JSON file for a uniform heightmap. This layer and the "normal" layer should not both be defined at the same time.
metalness_emissive_roughnessstring
This is a 3-channel image (or 4-channel where the 4th channel is ignored) or a 3-value array for a uniform MER. RGB images map Red to Metalness, Green to Emissive, and Blue to Roughness.
metalness_emissive_roughnessarray
This is a 3-channel image (or 4-channel where the 4th channel is ignored) or a 3-value array for a uniform MER. RGB images map Red to Metalness, Green to Emissive, and Blue to Roughness.
metalness_emissive_roughness
0..0integer
1..1integer
2..2integer
normalstring
This is a 3-channel normal map image (or 4-channel where the 4th channel is ignored). This layer and the "heightmap" layer should not both be defined at the same time.