[*] 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

@@ -174,9 +174,9 @@ void X3DImporter::ParseNode_Lighting_SpotLight()
std::string def, use;
float ambientIntensity = 0;
aiVector3D attenuation(1, 0, 0);
float beamWidth = 0.7854;
float beamWidth = 0.7854f;
aiColor3D color(1, 1, 1);
float cutOffAngle = 1.570796;
float cutOffAngle = 1.570796f;
aiVector3D direction(0, 0, -1);
bool global = true;
float intensity = 1;