未命名¶
文档版本:1.21.50.25
架构¶
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_version
:format_version
minecraft:texture_set
:object- Texture Sets are used to define multiple PBR layers for a texture resource.
minecraft:texture_set
color
:string- 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
:array- 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..0
:integer
1..1
:integer
2..2
:integer
3..3
:integer
heightmap
:string- 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.
heightmap
:integer- 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_roughness
:string- 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
:array- 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..0
:integer
1..1
:integer
2..2
:integer
normal
:string- 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.