fixed projection pixel count, adjustable projection resolution, smaller initial resolution for projection, added button controls
This commit is contained in:
parent
6ca58040c4
commit
901177e2e4
4 changed files with 70 additions and 11 deletions
|
|
@ -116,6 +116,15 @@ public class PlanetHelper
|
|||
Octree.Insert(new Node(i, Mdt.GetVertex(i) * 0.001f));
|
||||
Mdt.SetVertexColor(i, Colors.Black);
|
||||
}
|
||||
if (_meshInstance.GetSurfaceOverrideMaterial(0) is ShaderMaterial shaderMaterial)
|
||||
{
|
||||
shaderMaterial.SetShaderParameter("mode", 1);
|
||||
}
|
||||
if (_textureRect.Material is ShaderMaterial textureShaderMaterial)
|
||||
{
|
||||
textureShaderMaterial.SetShaderParameter("mode", 1);
|
||||
}
|
||||
UpdateMesh();
|
||||
}
|
||||
|
||||
public void InitializeGeneration()
|
||||
|
|
@ -211,9 +220,14 @@ public class PlanetHelper
|
|||
GenerationStage stage = Stage + 1;
|
||||
Stage = Stage == StopStage ? GenerationStage.Completed : stage;
|
||||
if (stage == GenerationStage.Completed)
|
||||
{
|
||||
AutoRun = false;
|
||||
_generationStopwatch.Stop();
|
||||
}
|
||||
else
|
||||
{
|
||||
_generationStopwatch.Restart();
|
||||
}
|
||||
GD.Print($"Stage Started: '{Stage.ToString()}'");
|
||||
_waiting = false;
|
||||
StageComplete = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue