Skip to content

Commit

Permalink
minimum brightness for cells increased
Browse files Browse the repository at this point in the history
  • Loading branch information
chrxh committed Jul 19, 2024
1 parent 1e84050 commit 5700ef7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion source/EngineGpuKernels/RenderingKernels.cu
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ namespace

__device__ __inline__ float3 calcColor(Cell* cell, int selected, CellColoring cellColoring, bool primary)
{
float factor = max(20.0f, min(300.0f, cell->energy)) / 340.0f;
float factor = max(30.0f, min(300.0f, cell->energy)) / 340.0f;
if (1 == selected) {
factor *= 2.5f;
}
Expand Down
1 change: 1 addition & 0 deletions source/EngineGpuKernels/SimulationStatistics.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ public:
private:
RawStatisticsData* _data;

//for diversity calculation
static auto constexpr MutantToColorCountMapSize = 1 << 20;
struct ColorCount
{
Expand Down

0 comments on commit 5700ef7

Please sign in to comment.