Skip to content

Commit

Permalink
Model Renderer: Slightly darker ambient lighting for models
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Dec 31, 2015
1 parent 5237fcd commit bd6d854
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions doomsday/apps/client/src/render/modelrenderer.cpp
Expand Up @@ -144,8 +144,6 @@ DENG2_PIMPL(ModelRenderer)

atlasPool.clear();
unloadProgram(*programs[SHADER_DEFAULT]);

//reflectionCube.clear();
}

Atlas *makeAtlas(MultiAtlas &) override
Expand Down Expand Up @@ -572,7 +570,7 @@ DENG2_PIMPL(ModelRenderer)
void setupLighting(VisEntityLighting const &lighting)
{
// Ambient color and lighting vectors.
setAmbientLight(lighting.ambientColor * .8f);
setAmbientLight(lighting.ambientColor * .6f);
clearLights();
ClientApp::renderSystem().forAllVectorLights(lighting.vLightListIdx,
[this] (VectorLightData const &vlight)
Expand Down Expand Up @@ -758,7 +756,7 @@ void ModelRenderer::render(vissprite_t const &spr)

d->setupPose((spr.pose.origin + spr.pose.srvo).xzy(),
p.model->offset,
spr.pose.viewAligned? spr.pose.yawAngleOffset : spr.pose.yaw,
/*Timer_RealSeconds()*20 +*/ (spr.pose.viewAligned? spr.pose.yawAngleOffset : spr.pose.yaw),
0 /*Timer_RealSeconds()*50*/ /* pitch */,
mobjData? &mobjData->modelTransformation() : nullptr);

Expand Down

0 comments on commit bd6d854

Please sign in to comment.