paysages : Small fixes.
git-svn-id: https://subversion.assembla.com/svn/thunderk/paysages@430 b1fd45b6-86a6-48da-8261-f70d1f35bdcc
This commit is contained in:
parent
c9d4676280
commit
cc21b63966
3 changed files with 9 additions and 8 deletions
3
TODO
3
TODO
|
@ -11,7 +11,8 @@ Technology Preview 2 :
|
|||
=> Find a proper model for night sky (maybe Shirley)
|
||||
- InputInt doesn't honor small_step.
|
||||
- Keep skydome lights in cache for a render.
|
||||
- Add buttons to restore "auto" default values in tabs and dialogs.
|
||||
- Add buttons to restore "auto" default values in tabs and dialogs (with several auto presets).
|
||||
- Clouds should keep distance to ground.
|
||||
- Add "hardness to light" and shadow control ("minimum lighting") to material.
|
||||
|
||||
Technlogy Preview 3 :
|
||||
|
|
|
@ -80,7 +80,7 @@ void autoGenRealisticLandscape(int seed)
|
|||
|
||||
/* Water */
|
||||
water = waterCreateDefinition();
|
||||
water.height = -5.0;
|
||||
water.height = -4.0;
|
||||
water.transparency = 0.5;
|
||||
water.reflection = 0.4;
|
||||
water.transparency_depth = 6.0;
|
||||
|
|
|
@ -89,11 +89,11 @@ CloudsLayerDefinition* cloudsLayerCreateDefinition()
|
|||
result->lighttraversal = 7.0;
|
||||
result->minimumlight = 0.4;
|
||||
result->shape_scaling = 10.0;
|
||||
result->edge_scaling = 0.3;
|
||||
result->edge_length = 0.4;
|
||||
result->base_coverage = 0.35;
|
||||
result->edge_scaling = 0.8;
|
||||
result->edge_length = 0.3;
|
||||
result->base_coverage = 0.4;
|
||||
result->shape_noise = noiseCreateGenerator();
|
||||
noiseAddLevelsSimple(result->shape_noise, 6, 1.0, 1.0);
|
||||
noiseAddLevelsSimple(result->shape_noise, 2, 1.0, 1.0);
|
||||
noiseSetFunctionParams(result->shape_noise, NOISE_FUNCTION_SIMPLEX, 0.3);
|
||||
result->edge_noise = noiseCreateGenerator();
|
||||
noiseAddLevelsSimple(result->edge_noise, 8, 1.0, 1.0);
|
||||
|
@ -314,7 +314,7 @@ static int _optimizeSearchLimits(CloudsLayerDefinition* layer, Vector3* start, V
|
|||
else /* start is inside layer */
|
||||
{
|
||||
diff = v3Sub(*end, *start);
|
||||
if (end->y > layer->thickness)
|
||||
if (end->y > layer->lower_altitude + layer->thickness)
|
||||
{
|
||||
*end = v3Add(*start, v3Scale(diff, (layer->lower_altitude + layer->thickness - start->y) / diff.y));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue