[*] Set float type for constants: less warnings, less type truncations.

This commit is contained in:
Alexandr Arutjunov
2016-10-02 20:00:57 +03:00
parent 897370b6ff
commit aeb99898d3
3 changed files with 6 additions and 6 deletions

View File

@@ -159,10 +159,10 @@ CX3DImporter_NodeElement* ne;
void X3DImporter::ParseNode_Shape_Material()
{
std::string use, def;
float ambientIntensity = 0.2;
float shininess = 0.2;
float ambientIntensity = 0.2f;
float shininess = 0.2f;
float transparency = 0;
aiColor3D diffuseColor(0.8, 0.8, 0.8);
aiColor3D diffuseColor(0.8f, 0.8f, 0.8f);
aiColor3D emissiveColor(0, 0, 0);
aiColor3D specularColor(0, 0, 0);
CX3DImporter_NodeElement* ne;