Sector & Loadout Generation Fixes
Adjusted sector generation to improve sample elimination performance and better preserve density map Added unit tests for item shape rotation and fit functions + fixed those (required for correct loadout generation)! Fixed faction hostility by marking player ship Added faction to entity serialization Generating starting loadout for player ship
This commit is contained in:
parent
ebde23a64d
commit
351cb9f2af
23 changed files with 879 additions and 128 deletions
|
|
@ -124,11 +124,11 @@
|
|||
float noise = pow(triNoise3d(pos*_NoiseFrequency),2);// + triNoise3d(pos*_NoiseFrequency*2, _NoiseSpeed * 2) * .5;
|
||||
pos.y += noise * _NoiseStrength;
|
||||
float patchDensity = saturate((-abs(pos.y+displacement)+patch)/_GridPatchBlend)*_GridPatchDensity;
|
||||
float floorDist = -pos.y-(surface)+_GridFloorOffset;
|
||||
float floorDist = -pos.y-surface+_GridFloorOffset;
|
||||
float floorDensity = floorDist/_GridFloorBlend*_GridFloorDensity;
|
||||
float fogDensity = patchDensity + max(0,floorDensity);
|
||||
float alpha = min(max(max(fogDensity, 0) + fillDensity, _AlphaFloor), .99);
|
||||
float albedo = (pow(1-alpha, _TintExponent)) * smoothstep(0,-50,pos.y);
|
||||
float albedo = pow(1-alpha, _TintExponent) * smoothstep(0,-250,pos.y);
|
||||
return float4((albedo*_Tint*lightTint).rgb, alpha);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue