2020-11-01 17:22:42 +01:00
|
|
|
{
|
|
|
|
|
"$id": "blockception.minecraft.materials",
|
|
|
|
|
"type": "object",
|
|
|
|
|
"title": "Material",
|
|
|
|
|
"description": "TODO",
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"definitions": {
|
|
|
|
|
"DefinesSpecification": {
|
|
|
|
|
"type": "array",
|
|
|
|
|
"title": "Defines",
|
|
|
|
|
"description": "TODO",
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "string",
|
|
|
|
|
"title": "Definition",
|
|
|
|
|
"description": "TODO",
|
|
|
|
|
"enum": [
|
|
|
|
|
"ALLOW_FADE",
|
|
|
|
|
"ALPHA_TEST",
|
|
|
|
|
"ALWAYS_LIT",
|
|
|
|
|
"ARRAY_TEXTURE_0",
|
|
|
|
|
"AS_ENTITY_RENDERER",
|
|
|
|
|
"ATLAS_TEXTURE",
|
|
|
|
|
"BLEND",
|
|
|
|
|
"BLUR_STEPS 1",
|
|
|
|
|
"BLUR_STEPS 10",
|
|
|
|
|
"BLUR_STEPS 11",
|
|
|
|
|
"BLUR_STEPS 12",
|
|
|
|
|
"BLUR_STEPS 2",
|
|
|
|
|
"BLUR_STEPS 3",
|
|
|
|
|
"BLUR_STEPS 4",
|
|
|
|
|
"BLUR_STEPS 5",
|
|
|
|
|
"BLUR_STEPS 6",
|
|
|
|
|
"BLUR_STEPS 7",
|
|
|
|
|
"BLUR_STEPS 8",
|
|
|
|
|
"BLUR_STEPS 9",
|
|
|
|
|
"Blending",
|
|
|
|
|
"COLOR_BASED",
|
|
|
|
|
"COLOR_FROMTEX",
|
|
|
|
|
"COLOR_MULTIPLIER",
|
|
|
|
|
"COLOR_SECOND_TEXTURE",
|
|
|
|
|
"COMFORT_MODE",
|
|
|
|
|
"DISABLE_TINTING",
|
|
|
|
|
"DisableCulling",
|
|
|
|
|
"EFFECTS_OFFSET",
|
|
|
|
|
"ENABLE_CURRENT_ALPHA_MULTIPLY",
|
|
|
|
|
"ENABLE_FOG",
|
|
|
|
|
"ENABLE_LIGHT",
|
|
|
|
|
"ENABLE_VERTEX_TINT_MASK",
|
|
|
|
|
"END_PORTAL",
|
|
|
|
|
"FLIP_OCCLUSION",
|
|
|
|
|
"FOG",
|
|
|
|
|
"FORCE_DEPTH_ZERO",
|
|
|
|
|
"GLINT",
|
|
|
|
|
"GRADIENT_2PT",
|
|
|
|
|
"GRADIENT_3PTSYMM",
|
|
|
|
|
"GRADIENT_FROMTEX",
|
|
|
|
|
"GRADIENT_LINEAR",
|
|
|
|
|
"GRADIENT_RADIAL",
|
|
|
|
|
"HAS_MASK",
|
|
|
|
|
"IGNORE_CURRENTCOLOR",
|
|
|
|
|
"INVENTORY",
|
|
|
|
|
"ITEM_IN_HAND",
|
|
|
|
|
"LINE_STRIP",
|
|
|
|
|
"LOW_PRECISION",
|
|
|
|
|
"MASKED_MULTITEXTURE",
|
|
|
|
|
"MSDF",
|
|
|
|
|
"MULTIPLICATIVE_TINT",
|
|
|
|
|
"MULTIPLICATIVE_TINT_COLOR",
|
|
|
|
|
"MULTI_COLOR_TINT",
|
|
|
|
|
"NO_OCCLUSION",
|
|
|
|
|
"NO_TEXTURE",
|
|
|
|
|
"NO_VARIETY",
|
|
|
|
|
"SEASONS",
|
|
|
|
|
"SEASONS_FAR",
|
|
|
|
|
"SMOOTH",
|
|
|
|
|
"SNOW",
|
|
|
|
|
"STEREO_LEFT_EYE_ONLY",
|
|
|
|
|
"TEXEL_AA",
|
|
|
|
|
"TINTED",
|
|
|
|
|
"TINTED_ALPHA_TEST",
|
|
|
|
|
"UI_ENTITY",
|
|
|
|
|
"USE_COLOR_BLEND",
|
|
|
|
|
"USE_COLOR_MASK",
|
|
|
|
|
"USE_EMISSIVE",
|
|
|
|
|
"USE_LIGHTING",
|
|
|
|
|
"USE_MASK",
|
|
|
|
|
"USE_MULTITEXTURE",
|
|
|
|
|
"USE_ONLY_EMISSIVE",
|
|
|
|
|
"USE_OVERLAY",
|
|
|
|
|
"USE_SKINNING",
|
|
|
|
|
"USE_STEREO_TEXTURE_ARRAY",
|
|
|
|
|
"USE_UV_ANIM",
|
|
|
|
|
"WINDOWSMR_MAGICALPHA"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
2021-03-21 15:18:38 +01:00
|
|
|
"FailOperation": { "type": "string", "title": "Fail Operation", "description": "TODO", "enum": ["Keep", "Replace"] },
|
2020-11-01 17:22:42 +01:00
|
|
|
"FaceSpecification": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"title": "Face",
|
|
|
|
|
"description": "TODO",
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
2021-03-21 15:18:38 +01:00
|
|
|
"stencilDepthFailOp": { "type": "string", "title": "Stencil Depth Fail Operation", "description": "", "$ref": "#/definitions/FailOperation" },
|
|
|
|
|
"stencilFailOp": { "type": "string", "title": "Stencil Fail Operation", "description": "", "$ref": "#/definitions/FailOperation" },
|
|
|
|
|
"stencilFunc": { "type": "string", "title": "Stencil Function", "description": "", "enum": ["Always", "Equal", "NotEqual"] },
|
|
|
|
|
"stencilPass": { "type": "string", "title": "Stencil Pass", "description": "", "enum": ["Replace"] },
|
|
|
|
|
"stencilPassOp": { "type": "string", "title": "Stencil Depth Fail Operation", "description": "", "$ref": "#/definitions/FailOperation" }
|
2020-11-01 17:22:42 +01:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"StatesSpecification": {
|
|
|
|
|
"type": "array",
|
|
|
|
|
"title": "States",
|
|
|
|
|
"description": "TODO",
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "string",
|
|
|
|
|
"title": "State",
|
|
|
|
|
"description": "TODO",
|
|
|
|
|
"enum": [
|
|
|
|
|
"Blending",
|
|
|
|
|
"DisableAlphaWrite",
|
|
|
|
|
"DisableColorWrite",
|
|
|
|
|
"DisableCulling",
|
|
|
|
|
"DisableDepthTest",
|
|
|
|
|
"DisableDepthWrite",
|
|
|
|
|
"EnableAlphaToCoverage",
|
|
|
|
|
"EnableStencilTest",
|
|
|
|
|
"InvertCulling",
|
|
|
|
|
"StencilWrite"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"SamplerStatesSpecification": {
|
|
|
|
|
"type": "array",
|
|
|
|
|
"title": "Sampler States",
|
|
|
|
|
"description": "TODO",
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "object",
|
2021-03-21 15:18:38 +01:00
|
|
|
"title": "Sample State",
|
2020-11-01 17:22:42 +01:00
|
|
|
"description": "TODO",
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
2021-03-21 15:18:38 +01:00
|
|
|
"samplerIndex": { "type": "integer", "title": "Sample State", "description": "TODO" },
|
|
|
|
|
"textureFilter": { "type": "string", "title": "Texture Filter", "description": "TODO", "enum": ["Point", "Bilinear", "TexelAA"] },
|
|
|
|
|
"textureWrap": { "type": "string", "title": "Texture Wrap", "description": "TODO", "enum": ["Repeat", "Clamp"] }
|
2020-11-01 17:22:42 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"VertexFieldsSpecification": {
|
|
|
|
|
"type": "array",
|
2021-03-21 15:18:38 +01:00
|
|
|
"title": "Vertex Fields",
|
2020-11-01 17:22:42 +01:00
|
|
|
"description": "TODO",
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "object",
|
2021-03-21 15:18:38 +01:00
|
|
|
"title": "Vertex Field",
|
2020-11-01 17:22:42 +01:00
|
|
|
"description": "TODO",
|
|
|
|
|
"additionalProperties": false,
|
2021-03-21 15:18:38 +01:00
|
|
|
"properties": { "field": { "type": "string", "title": "Vertex Field", "description": "TODO" } }
|
2020-11-01 17:22:42 +01:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"VariantSpecification": {
|
|
|
|
|
"type": "array",
|
|
|
|
|
"title": "Variants",
|
|
|
|
|
"description": "TODO",
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"title": "Variant",
|
|
|
|
|
"description": "TODO",
|
2021-03-21 15:18:38 +01:00
|
|
|
"propertyNames": { "enum": ["fading", "fog", "fog.underwater", "lit", "skinning", "skinning_color", "underlava", "underwater"] },
|
|
|
|
|
"additionalProperties": { "title": "Variant Item", "description": "TODO", "$ref": "#/definitions/VariantsItemSpecificaiton" }
|
2020-11-01 17:22:42 +01:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"VariantsItemSpecificaiton": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"title": "Variant Item",
|
|
|
|
|
"description": "TODO",
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
2021-03-21 15:18:38 +01:00
|
|
|
"+defines": { "title": "Defines", "description": "TODO, Add definitions???", "$ref": "#/definitions/DefinesSpecification" },
|
|
|
|
|
"vertexFields": { "title": "Vertex Fields", "description": "TODO", "$ref": "#/definitions/VertexFieldsSpecification" },
|
|
|
|
|
"states": { "title": "States", "description": "TODO, start states???", "$ref": "#/definitions/StatesSpecification" },
|
|
|
|
|
"+states": { "title": "States", "description": "TODO, Add additional states???", "$ref": "#/definitions/StatesSpecification" },
|
|
|
|
|
"-states": { "title": "States", "description": "TODO, remove additional states???", "$ref": "#/definitions/StatesSpecification" }
|
2020-11-01 17:22:42 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"properties": {
|
|
|
|
|
"materials": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"title": "Materials",
|
|
|
|
|
"description": "TODO",
|
|
|
|
|
"required": ["version"],
|
2021-03-21 15:18:38 +01:00
|
|
|
"properties": { "version": { "type": "string", "const": "1.0.0", "title": "Version", "description": "TODO" } },
|
2020-11-01 17:22:42 +01:00
|
|
|
"additionalProperties": {
|
2021-03-21 15:18:38 +01:00
|
|
|
"title": "Material Definitions",
|
2020-11-01 17:22:42 +01:00
|
|
|
"description": "TODO",
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
2021-03-21 15:18:38 +01:00
|
|
|
"alphaDst": { "type": "string", "title": "Alpha Distance", "description": "TODO", "enum": ["DestColor", "OneMinusSrcAlpha"] },
|
|
|
|
|
"backFace": { "title": "Back Face", "description": "TODO", "$ref": "#/definitions/FaceSpecification" },
|
2020-11-01 17:22:42 +01:00
|
|
|
"blendDst": {
|
|
|
|
|
"type": "string",
|
|
|
|
|
"title": "Blend Distance",
|
|
|
|
|
"description": "TODO",
|
|
|
|
|
"enum": ["SourceAlpha", "OneMinusSrcAlpha", "OneMinusSrcColor", "SourceColor", "Zero", "One"]
|
|
|
|
|
},
|
2021-05-18 23:32:44 +02:00
|
|
|
"blendSrc": {
|
|
|
|
|
"type": "string",
|
|
|
|
|
"title": "Blend Source",
|
|
|
|
|
"description": "TODO",
|
|
|
|
|
"enum": ["DestColor", "One", "OneMinusDestColor", "SourceAlpha", "SourceColor"]
|
|
|
|
|
},
|
2021-03-21 15:18:38 +01:00
|
|
|
"defines": { "title": "Defines", "description": "TODO, sets or starts definitions???", "$ref": "#/definitions/DefinesSpecification" },
|
|
|
|
|
"+defines": { "title": "Defines", "description": "TODO, Add definitions???", "$ref": "#/definitions/DefinesSpecification" },
|
|
|
|
|
"-defines": { "title": "Defines", "description": "TODO, removes definitions???", "$ref": "#/definitions/DefinesSpecification" },
|
|
|
|
|
"depthBias": { "type": "number", "title": "Depth Bias", "description": "TODO" },
|
|
|
|
|
"depthBiasOGL": { "type": "number", "title": "Depth Bias OGL", "description": "TODO" },
|
|
|
|
|
"depthFunc": { "type": "string", "title": "Depth Function", "description": "TODO", "enum": ["LessEqual", "Always", "Equal"] },
|
|
|
|
|
"fragmentShader": { "type": "string", "title": "Fragment Shader", "description": "TODO", "pattern": "^shaders/.*\\.fragment$" },
|
|
|
|
|
"frontFace": { "title": "Front Face", "description": "TODO", "$ref": "#/definitions/FaceSpecification" },
|
2021-05-18 23:32:44 +02:00
|
|
|
"isAnimatedTexture": {
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"title": "Is Animated Texture",
|
|
|
|
|
"description": "TODO, think its a boolean value as a number, so 1 and 0????"
|
|
|
|
|
},
|
2021-03-21 15:18:38 +01:00
|
|
|
"msaaSupport": { "type": "string", "title": "MSAA Support", "description": "TODO", "enum": ["Both", "MSAA"] },
|
|
|
|
|
"primitiveMode": { "type": "string", "title": "Primitive Mode", "description": "TODO", "enum": ["Line"] },
|
2021-05-18 23:32:44 +02:00
|
|
|
"samplerStates": {
|
|
|
|
|
"title": "Sampler States",
|
|
|
|
|
"description": "TODO, set or start samplerStates???",
|
|
|
|
|
"$ref": "#/definitions/SamplerStatesSpecification"
|
|
|
|
|
},
|
|
|
|
|
"+samplerStates": {
|
|
|
|
|
"title": "Sampler States",
|
|
|
|
|
"description": "TODO, Add samplerStates???",
|
|
|
|
|
"$ref": "#/definitions/SamplerStatesSpecification"
|
|
|
|
|
},
|
2021-03-21 15:18:38 +01:00
|
|
|
"slopeScaledDepthBias": { "type": "number", "title": "Slope Scaled Depth Bias", "description": "TODO" },
|
|
|
|
|
"slopeScaledDepthBiasOGL": { "type": "number", "title": "Slope Scaled Depth Bias OGL", "description": "TODO" },
|
|
|
|
|
"states": { "title": "States", "description": "TODO, start states???", "$ref": "#/definitions/StatesSpecification" },
|
|
|
|
|
"+states": { "title": "States", "description": "TODO, Add additional states???", "$ref": "#/definitions/StatesSpecification" },
|
|
|
|
|
"-states": { "title": "States", "description": "TODO, remove additional states???", "$ref": "#/definitions/StatesSpecification" },
|
|
|
|
|
"stencilRef": { "type": "integer", "title": "Stencil Ref", "description": "TODO" },
|
|
|
|
|
"stencilRefOverride": { "type": "integer", "title": "Stencil Ref Override", "description": "TODO" },
|
|
|
|
|
"stencilReadMask": { "type": "integer", "title": "Stencil Read Mask", "description": "TODO" },
|
|
|
|
|
"stencilWriteMask": { "type": "integer", "title": "Stencil Write Mask", "description": "TODO" },
|
|
|
|
|
"variants": { "title": "Variants", "description": "TODO, sets the variants?", "$ref": "#/definitions/VariantSpecification" },
|
|
|
|
|
"+variants": { "title": "Variants", "description": "TODO, adds variants?", "$ref": "#/definitions/VariantSpecification" },
|
|
|
|
|
"vertexFields": { "title": "Vertex Fields", "description": "TODO", "$ref": "#/definitions/VertexFieldsSpecification" },
|
|
|
|
|
"vertexShader": { "type": "string", "title": "Vertex Shader", "description": "TODO", "pattern": "^shaders/.*\\.vertex$" },
|
|
|
|
|
"vrGeometryShader": { "type": "string", "title": "VR Geometry Shader", "description": "TODO", "pattern": "^shaders/.*\\.geometry$" }
|
2020-11-01 17:22:42 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|