git.s-ol.nu ~forks/DiligentTools / 539ee6e
GLTF Loader: fixed names of Material::ALPHA_MODE enum members assiduous 11 months ago
2 changed file(s) with 7 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
115115
116116 enum ALPHA_MODE
117117 {
118 ALPHAMODE_OPAQUE,
119 ALPHAMODE_MASK,
120 ALPHAMODE_BLEND
121 };
122 ALPHA_MODE AlphaMode = ALPHAMODE_OPAQUE;
118 ALPHA_MODE_OPAQUE,
119 ALPHA_MODE_MASK,
120 ALPHA_MODE_BLEND
121 };
122 ALPHA_MODE AlphaMode = ALPHA_MODE_OPAQUE;
123123
124124 bool DoubleSided = false;
125125
10461046 const tinygltf::Parameter& param = alpha_mode_it->second;
10471047 if (param.string_value == "BLEND")
10481048 {
1049 Mat.AlphaMode = Material::ALPHAMODE_BLEND;
1049 Mat.AlphaMode = Material::ALPHA_MODE_BLEND;
10501050 }
10511051 if (param.string_value == "MASK")
10521052 {
1053 Mat.AlphaMode = Material::ALPHAMODE_MASK;
1053 Mat.AlphaMode = Material::ALPHA_MODE_MASK;
10541054
10551055 Mat.Attribs.UseAlphaMask = 1;
10561056 Mat.Attribs.AlphaCutoff = 0.5f;