mirror of
https://github.com/minetest/irrlicht.git
synced 2024-11-15 23:10:26 +01:00
Blend & FX
This commit is contained in:
parent
162f45327c
commit
da18594daf
|
@ -298,7 +298,29 @@ std::tuple<bool, std::string> CB3DJSONMeshFileLoader::readChunkBRUS() {
|
|||
return {false, "BRUS: Element (" + std::to_string(index) + ") \"alpha\" is not a number."};
|
||||
}
|
||||
|
||||
//* Blend.
|
||||
if (b.contains("blend") && b["blend"].is_number_integer()) {
|
||||
B3DMaterial.blend = b["blend"];
|
||||
} else {
|
||||
|
||||
if (!b.contains("blend")) {
|
||||
return {false, "BRUS: Element (" + std::to_string(index) + ") is missing \"blend\"."};
|
||||
}
|
||||
|
||||
return {false, "BRUS: Element (" + std::to_string(index) + ") \"blend\" is not an integer."};
|
||||
}
|
||||
|
||||
//* FX.
|
||||
if (b.contains("fx") && b["fx"].is_number_integer()) {
|
||||
B3DMaterial.fx = b["fx"];
|
||||
} else {
|
||||
|
||||
if (!b.contains("fx")) {
|
||||
return {false, "BRUS: Element (" + std::to_string(index) + ") is missing \"fx\"."};
|
||||
}
|
||||
|
||||
return {false, "BRUS: Element (" + std::to_string(index) + ") \"fx\" is not an integer."};
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user