Skip to content

Commit

Permalink
Fixed sky light color.
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed Mar 25, 2011
1 parent 94f4770 commit 520dcf8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doomsday/engine/portable/src/p_materialmanager.c
Expand Up @@ -1326,8 +1326,8 @@ byte Materials_Prepare(material_snapshot_t* snapshot, material_t* mat,
snapshot->topColor[CR] = snapshot->topColor[CG] = snapshot->topColor[CB] = 1;
}

/// \fixme what about the other texture types?
if(TC_MAPSURFACE_DIFFUSE == TS_NORMAL(spec->primarySpec)->context)
if(TC_MAPSURFACE_DIFFUSE == TS_NORMAL(spec->primarySpec)->context ||
TC_SKYSPHERE_DIFFUSE == TS_NORMAL(spec->primarySpec)->context)
{
const ambientlight_analysis_t* ambientLight = (const ambientlight_analysis_t*)
TextureVariant_Analysis(layerTextures[0], TA_MAP_AMBIENTLIGHT);
Expand Down

0 comments on commit 520dcf8

Please sign in to comment.