Fix MSVC compiler warnings
parent
09c5564d5b
commit
ff8d50c8d0
|
@ -727,7 +727,7 @@ void PbrtExporter::WriteLights() {
|
||||||
|
|
||||||
aiColor3D color = light->mColorDiffuse + light->mColorSpecular;
|
aiColor3D color = light->mColorDiffuse + light->mColorSpecular;
|
||||||
if (light->mAttenuationConstant != 0)
|
if (light->mAttenuationConstant != 0)
|
||||||
color = color * (1. / light->mAttenuationConstant);
|
color = color * (ai_real)(1. / light->mAttenuationConstant);
|
||||||
|
|
||||||
switch (light->mType) {
|
switch (light->mType) {
|
||||||
case aiLightSource_DIRECTIONAL: {
|
case aiLightSource_DIRECTIONAL: {
|
||||||
|
@ -771,8 +771,8 @@ void PbrtExporter::WriteLights() {
|
||||||
mOutput << " \"rgb L\" [ " << color.r << " " << color.g << " " << color.b << " ]\n";
|
mOutput << " \"rgb L\" [ " << color.r << " " << color.g << " " << color.b << " ]\n";
|
||||||
mOutput << " Shape \"bilinearmesh\"\n";
|
mOutput << " Shape \"bilinearmesh\"\n";
|
||||||
mOutput << " \"point3 p\" [ ";
|
mOutput << " \"point3 p\" [ ";
|
||||||
for (int i = 0; i < 4; ++i)
|
for (int j = 0; j < 4; ++j)
|
||||||
mOutput << vertices[i].x << " " << vertices[i].y << " " << vertices[i].z;
|
mOutput << vertices[j].x << " " << vertices[j].y << " " << vertices[j].z;
|
||||||
mOutput << " ]\n";
|
mOutput << " ]\n";
|
||||||
mOutput << " \"integer indices\" [ 0 1 2 3 ]\n";
|
mOutput << " \"integer indices\" [ 0 1 2 3 ]\n";
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue