Material¶
文档版本:1.21.50.25
A collection of material specifications for the render engine of minecraft.
架构¶
materials:
{
object "materials" : opt
{
string "version" : opt
object "<any object property>" : opt
{
string "alphaDst" : opt
object "backFace" : opt
{
string "stencilDepthFailOp" : opt
string "stencilFailOp" : opt
string "stencilFunc" : opt
string "stencilPass" : opt
string "stencilPassOp" : opt
}
string "blendDst" : opt
string "blendSrc" : opt
array "defines" : opt
{
string "<any array element>" : opt
}
array "+defines" : opt
array "-defines" : opt
number "depthBias" : opt
number "depthBiasOGL" : opt
string "depthFunc" : opt
string "fragmentShader" : opt
object "frontFace" : opt
{
}
integer "isAnimatedTexture" : opt
string "msaaSupport" : opt
string "primitiveMode" : opt
array "samplerStates" : opt
{
object "<any array element>" : opt
{
integer "samplerIndex" : opt
string "textureFilter" : opt
string "textureWrap" : opt
}
}
array "+samplerStates" : opt
number "slopeScaledDepthBias" : opt
number "slopeScaledDepthBiasOGL" : opt
array "states" : opt
{
string "<any array element>" : opt
}
array "+states" : opt
array "-states" : opt
integer "stencilRef" : opt
integer "stencilRefOverride" : opt
integer "stencilReadMask" : opt
integer "stencilWriteMask" : opt
array "variants" : opt
{
object "<any array element>" : opt
{
object "<any object property>" : opt
{
array "+defines" : opt
array "vertexFields" : opt
{
object "<any array element>" : opt
{
string "field" : opt
}
}
array "states" : opt
array "+states" : opt
array "-states" : opt
}
}
}
array "+variants" : opt
array "vertexFields" : opt
string "vertexShader" : opt
string "vrGeometryShader" : opt
}
}
}
materials
:object- The collection of materials, each property key is the identification key of the material, and what it implements if : are used.
materials
version
:string- UNDOCUMENTED.
<any object property>
:object- UNDOCUMENTED.
<any object property>
alphaDst
:string- UNDOCUMENTED.
backFace
:object- UNDOCUMENTED.
backFace
stencilDepthFailOp
:string- UNDOCUMENTED.
stencilFailOp
:string- UNDOCUMENTED.
stencilFunc
:string- UNDOCUMENTED.
stencilPass
:string- UNDOCUMENTED.
stencilPassOp
:string- UNDOCUMENTED.
blendDst
:string- UNDOCUMENTED.
blendSrc
:string- UNDOCUMENTED.
defines
:array- UNDOCUMENTED.
defines
<any array element>
:string- UNDOCUMENTED.
+defines
:array- UNDOCUMENTED.
+defines
-defines
:array- UNDOCUMENTED.
-defines
depthBias
:number- UNDOCUMENTED.
depthBiasOGL
:number- UNDOCUMENTED.
depthFunc
:string- UNDOCUMENTED.
fragmentShader
:string- UNDOCUMENTED.
frontFace
:object- UNDOCUMENTED.
frontFace
isAnimatedTexture
:integer- UNDOCUMENTED, think its a boolean value as a number, so 1 and 0????.
msaaSupport
:string- UNDOCUMENTED.
primitiveMode
:string- UNDOCUMENTED.
samplerStates
:array- UNDOCUMENTED.
samplerStates
<any array element>
:object- UNDOCUMENTED.
<any array element>
samplerIndex
:integer- UNDOCUMENTED.
textureFilter
:string- UNDOCUMENTED.
textureWrap
:string- UNDOCUMENTED.
+samplerStates
:array- UNDOCUMENTED.
+samplerStates
slopeScaledDepthBias
:number- UNDOCUMENTED.
slopeScaledDepthBiasOGL
:number- UNDOCUMENTED.
states
:array- UNDOCUMENTED.
states
<any array element>
:string- UNDOCUMENTED.
+states
:array- UNDOCUMENTED.
+states
-states
:array- UNDOCUMENTED.
-states
stencilRef
:integer- UNDOCUMENTED.
stencilRefOverride
:integer- UNDOCUMENTED.
stencilReadMask
:integer- UNDOCUMENTED.
stencilWriteMask
:integer- UNDOCUMENTED.
variants
:array- UNDOCUMENTED.
variants
<any array element>
:object- UNDOCUMENTED.
<any array element>
<any object property>
:object- UNDOCUMENTED.
<any object property>
+defines
:array- UNDOCUMENTED.
+defines
vertexFields
:array- UNDOCUMENTED.
vertexFields
<any array element>
:object- UNDOCUMENTED.
<any array element>
field
:string- UNDOCUMENTED.
states
:array- UNDOCUMENTED.
states
+states
:array- UNDOCUMENTED.
+states
-states
:array- UNDOCUMENTED.
-states
+variants
:array- UNDOCUMENTED.
+variants
vertexFields
:array- UNDOCUMENTED.
vertexFields
vertexShader
:string- UNDOCUMENTED.
vrGeometryShader
:string- UNDOCUMENTED.