Skip to content

Commit

Permalink
feat(materials): allow any alpha mode on materials (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
Olaf-Wolf3D authored Apr 19, 2024
1 parent 18fde01 commit d690904
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 30 deletions.
2 changes: 1 addition & 1 deletion schemas/assetBeard.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"$ref": "commonMaterial.schema.json#/$defs/singleSided"
},
"alphaMode": {
"$ref": "commonMaterial.schema.json#/$defs/opaqueAlphaMode"
"$ref": "commonMaterial.schema.json#/$defs/anyAlphaMode"
}
},
"allOf": [{ "$ref": "commonMaterial.schema.json" }],
Expand Down
2 changes: 1 addition & 1 deletion schemas/assetBottom.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"$ref": "commonMaterial.schema.json#/$defs/anySided"
},
"alphaMode": {
"$ref": "commonMaterial.schema.json#/$defs/opaqueAlphaMode"
"$ref": "commonMaterial.schema.json#/$defs/anyAlphaMode"
}
},
"allOf": [{ "$ref": "commonMaterial.schema.json" }],
Expand Down
24 changes: 3 additions & 21 deletions schemas/assetCostume.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@
},
"doubleSided": {
"$ref": "commonMaterial.schema.json#/$defs/anySided"
},
"alphaMode": {
"$ref": "commonMaterial.schema.json#/$defs/anyAlphaMode"
}
},
"allOf": [
Expand Down Expand Up @@ -104,27 +107,6 @@
"else": {
"$ref": "commonMaterial.schema.json"
}
},
{
"if": {
"properties": {
"name": { "const": "Wolf3D_Glasses" }
}
},
"then": {
"properties": {
"alphaMode": {
"$ref": "commonMaterial.schema.json#/$defs/anyAlphaMode"
}
}
},
"else": {
"properties": {
"alphaMode": {
"$ref": "commonMaterial.schema.json#/$defs/opaqueAlphaMode"
}
}
}
}
],
"required": [
Expand Down
2 changes: 1 addition & 1 deletion schemas/assetFootwear.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"$ref": "commonMaterial.schema.json#/$defs/anySided"
},
"alphaMode": {
"$ref": "commonMaterial.schema.json#/$defs/opaqueAlphaMode"
"$ref": "commonMaterial.schema.json#/$defs/anyAlphaMode"
}
},
"allOf": [{ "$ref": "commonMaterial.schema.json" }],
Expand Down
2 changes: 1 addition & 1 deletion schemas/assetHair.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"$ref": "commonMaterial.schema.json#/$defs/singleSided"
},
"alphaMode": {
"$ref": "commonMaterial.schema.json#/$defs/opaqueAlphaMode"
"$ref": "commonMaterial.schema.json#/$defs/anyAlphaMode"
}
},
"allOf": [{ "$ref": "commonMaterial.schema.json" }],
Expand Down
9 changes: 6 additions & 3 deletions schemas/assetOutfit.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,6 @@
},
"textures": {
"description": "Textures used by the outfit materials. The 'Wolf3D_Body' material uses only the 'normalTexture'. All other materials can use all channels."
},
"alphaMode": {
"$ref": "commonMaterial.schema.json#/$defs/opaqueAlphaMode"
}
},
"allOf": [
Expand All @@ -89,6 +86,9 @@
},
"doubleSided": {
"$ref": "commonMaterial.schema.json#/$defs/singleSided"
},
"alphaMode": {
"$ref": "commonMaterial.schema.json#/$defs/opaqueAlphaMode"
}
}
},
Expand All @@ -99,6 +99,9 @@
},
"doubleSided": {
"$ref": "commonMaterial.schema.json#/$defs/anySided"
},
"alphaMode": {
"$ref": "commonMaterial.schema.json#/$defs/anyAlphaMode"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion schemas/assetShirt.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"$ref": "commonMaterial.schema.json#/$defs/singleSided"
},
"alphaMode": {
"$ref": "commonMaterial.schema.json#/$defs/opaqueAlphaMode"
"$ref": "commonMaterial.schema.json#/$defs/anyAlphaMode"
}
},
"allOf": [{ "$ref": "commonMaterial.schema.json" }],
Expand Down
2 changes: 1 addition & 1 deletion schemas/assetTop.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"$ref": "commonMaterial.schema.json#/$defs/anySided"
},
"alphaMode": {
"$ref": "commonMaterial.schema.json#/$defs/opaqueAlphaMode"
"$ref": "commonMaterial.schema.json#/$defs/anyAlphaMode"
}
},
"allOf": [{ "$ref": "commonMaterial.schema.json" }],
Expand Down

0 comments on commit d690904

Please sign in to comment.