Code style format.
This commit is contained in:
commit
669985c64c
|
@ -469,7 +469,7 @@ static void ReadMesh(
|
|||
const RawMaterialType materialType =
|
||||
GetMaterialType(raw, textures, vertexTransparency, skinning.IsSkinned());
|
||||
const int rawMaterialIndex = raw.AddMaterial(
|
||||
materialId, materialName, materialType, textures, rawMatProps, userProperties, false );
|
||||
materialId, materialName, materialType, textures, rawMatProps, userProperties, false);
|
||||
|
||||
raw.AddTriangle(
|
||||
rawVertexIndices[0],
|
||||
|
|
|
@ -94,7 +94,8 @@ MaterialData::MaterialData(
|
|||
pbrMetallicRoughness(pbrMetallicRoughness) {}
|
||||
|
||||
json MaterialData::serialize() const {
|
||||
json result = {{"name", name},
|
||||
json result = {
|
||||
{"name", name},
|
||||
{"alphaMode", isTransparent ? "BLEND" : "OPAQUE"},
|
||||
{"doubleSided", isDoubleSided},
|
||||
{"extras",
|
||||
|
|
|
@ -150,7 +150,7 @@ int RawModel::AddMaterial(
|
|||
const int textures[RAW_TEXTURE_USAGE_MAX],
|
||||
std::shared_ptr<RawMatProps> materialInfo,
|
||||
const std::vector<std::string>& userProperties,
|
||||
const bool isDoubleSided ) {
|
||||
const bool isDoubleSided) {
|
||||
for (size_t i = 0; i < materials.size(); i++) {
|
||||
if (materials[i].name != name) {
|
||||
continue;
|
||||
|
|
|
@ -383,7 +383,7 @@ class RawModel {
|
|||
const int textures[RAW_TEXTURE_USAGE_MAX],
|
||||
std::shared_ptr<RawMatProps> materialInfo,
|
||||
const std::vector<std::string>& userProperties,
|
||||
const bool isDoubleSided );
|
||||
const bool isDoubleSided);
|
||||
int AddLight(
|
||||
const char* name,
|
||||
RawLightType lightType,
|
||||
|
|
Loading…
Reference in New Issue