Skip to content

Commit

Permalink
Model Renderer|Cleanup: Renamed "emission" map to "emissive" map
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Aug 27, 2014
1 parent d5033ea commit 4c63dcc
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions doomsday/client/net.dengine.client.pack/testmodel.pack/Info
Expand Up @@ -11,11 +11,11 @@ asset model.thing.possessed {

group material.@0 {
heightMap = "bodyheights.png"
#emissionMap = "bodyemission.png"
#emissiveMap = "bodyemission.png"
}
#group material.@5 {
# heightMap = "bodyheights.png"
# emissionMap = "bodyemission.png"
# emissiveMap = "bodyemission.png"
#}

group animation {
Expand Down
4 changes: 2 additions & 2 deletions doomsday/client/src/render/modelrenderer.cpp
Expand Up @@ -143,7 +143,7 @@ DENG2_PIMPL(ModelRenderer)
model.setAtlas(*atlas);

model.setDefaultTexture(ModelDrawable::Normals, defaultNormals);
model.setDefaultTexture(ModelDrawable::Emission, defaultEmission);
model.setDefaultTexture(ModelDrawable::Emissive, defaultEmission);
model.setDefaultTexture(ModelDrawable::Specular, defaultSpecular);

// Use the texture mapping specified in the shader. This has to be done
Expand Down Expand Up @@ -212,7 +212,7 @@ DENG2_PIMPL(ModelRenderer)
handleMaterialTexture(model, mat.key(), *mat.value(), "normalMap", ModelDrawable::Normals);
handleMaterialTexture(model, mat.key(), *mat.value(), "heightMap", ModelDrawable::Height);
handleMaterialTexture(model, mat.key(), *mat.value(), "specularMap", ModelDrawable::Specular);
handleMaterialTexture(model, mat.key(), *mat.value(), "emissionMap", ModelDrawable::Emission);
handleMaterialTexture(model, mat.key(), *mat.value(), "emissiveMap", ModelDrawable::Emissive);
}
}

Expand Down
2 changes: 1 addition & 1 deletion doomsday/libgui/include/de/graphics/modeldrawable.h
Expand Up @@ -61,7 +61,7 @@ class LIBGUI_PUBLIC ModelDrawable : public AssetGroup
The default normal vector pointing straight away from the
surface is therefore (128, 128, 255) => (0, 0, 1). */
Specular = 2, ///< Specular color (RGB) and reflection sharpness (A).
Emission = 3, /**< Additional light emitted by the surface that is not affected by
Emissive = 3, /**< Additional light emitted by the surface that is not affected by
external factors. */
Height = 4, /**< Height values are converted to a normal map. Lighter regions
are higher than dark regions. */
Expand Down
10 changes: 5 additions & 5 deletions doomsday/libgui/src/graphics/modeldrawable.cpp
Expand Up @@ -469,7 +469,7 @@ DENG2_PIMPL(ModelDrawable)
case aiTextureType_NORMALS: return Normals;
case aiTextureType_HEIGHT: return Height;
case aiTextureType_SPECULAR: return Specular;
case aiTextureType_EMISSIVE: return Emission;
case aiTextureType_EMISSIVE: return Emissive;
default:
DENG2_ASSERT(!"Unsupported texture type");
return Diffuse;
Expand All @@ -484,7 +484,7 @@ DENG2_PIMPL(ModelDrawable)
case Normals: return aiTextureType_NORMALS;
case Height: return aiTextureType_HEIGHT;
case Specular: return aiTextureType_SPECULAR;
case Emission: return aiTextureType_EMISSIVE;
case Emissive: return aiTextureType_EMISSIVE;
default:
break;
}
Expand Down Expand Up @@ -526,7 +526,7 @@ DENG2_PIMPL(ModelDrawable)
fallBackToDefaultTexture(mat, Specular);

loadTextureImage(i, aiTextureType_EMISSIVE);
fallBackToDefaultTexture(mat, Emission);
fallBackToDefaultTexture(mat, Emissive);
}
}

Expand Down Expand Up @@ -1058,7 +1058,7 @@ ModelDrawable::TextureMap ModelDrawable::textToTextureMap(String const &text)
{ "diffuse", Diffuse },
{ "normals", Normals },
{ "specular", Specular },
{ "emission", Emission },
{ "emission", Emissive },
{ "height", Height }
};

Expand Down Expand Up @@ -1135,7 +1135,7 @@ void ModelDrawable::unsetAtlas()

ModelDrawable::Mapping ModelDrawable::diffuseNormalsSpecularEmission() // static
{
return Mapping() << Diffuse << Normals << Specular << Emission;
return Mapping() << Diffuse << Normals << Specular << Emissive;
}

void ModelDrawable::setTextureMapping(Mapping mapsToUse)
Expand Down

0 comments on commit 4c63dcc

Please sign in to comment.