paysages : Small change.
git-svn-id: https://subversion.assembla.com/svn/thunderk/paysages@329 b1fd45b6-86a6-48da-8261-f70d1f35bdcc
This commit is contained in:
parent
d00557ac87
commit
182ccf7e96
1 changed files with 7 additions and 4 deletions
|
@ -493,13 +493,16 @@ static Color _applyLayerLighting(CloudsLayerDefinition* definition, Renderer* re
|
|||
{
|
||||
Vector3 normal;
|
||||
|
||||
normal = v3Scale(_getNormal(definition, position, 3.0), 0.25);
|
||||
normal = _getNormal(definition, position, 3.0);
|
||||
if (renderer->render_quality > 5)
|
||||
{
|
||||
normal = v3Add(normal, v3Scale(_getNormal(definition, position, 2.0), 0.25));
|
||||
normal = v3Add(normal, v3Scale(_getNormal(definition, position, 1.0), 0.25));
|
||||
normal = v3Add(normal, _getNormal(definition, position, 2.0));
|
||||
normal = v3Add(normal, _getNormal(definition, position, 1.0));
|
||||
}
|
||||
if (renderer->render_quality > 5)
|
||||
{
|
||||
normal = v3Add(normal, _getNormal(definition, position, 0.5));
|
||||
}
|
||||
normal = v3Add(normal, v3Scale(_getNormal(definition, position, 0.5), 0.25));
|
||||
normal = v3Scale(v3Normalize(normal), definition->hardness);
|
||||
|
||||
return renderer->applyLightingToSurface(renderer, position, normal, definition->material);
|
||||
|
|
Loading…
Reference in a new issue