Skip to content

Commit

Permalink
increased base opacity of cells (this was undone?)
Browse files Browse the repository at this point in the history
added space that was unnessasarily removed

made change suggested by hhenri,
  • Loading branch information
Untrustedlife authored and hhyyrylainen committed Feb 15, 2019
1 parent efd7030 commit 9e4cb93
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 18 deletions.
26 changes: 13 additions & 13 deletions scripts/SimulationParameters/MicrobeStage/Compounds.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,19 @@
}
},

"iron": {
"name": "Iron",
"volume": 1,
"isCloud": true,
"isUseful": false,
"isEnvironmental": false,
"colour": {
"r": 0.28,
"g": 0.098,
"b": 0.02
}
},

"oxygen": {
"name": "Oxygen",
"volume": 1,
Expand All @@ -101,18 +114,5 @@
"g": 0.0,
"b": 0.0
}
},

"iron": {
"name": "Iron",
"volume": 1,
"isCloud": true,
"isUseful": false,
"isEnvironmental": false,
"colour": {
"r": 0.28,
"g": 0.098,
"b": 0.02
}
}
}
2 changes: 1 addition & 1 deletion scripts/microbe_stage/configs.as
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const auto MAX_COLOR = 0.9f;
const auto MIN_COLOR_MUTATION = -0.005f;
const auto MAX_COLOR_MUTATION = 0.005f;

const auto MIN_OPACITY = 0.2f;
const auto MIN_OPACITY = 0.5f;
const auto MAX_OPACITY = 1.8f;

const auto MIN_OPACITY_CHITIN = 0.4f;
Expand Down
22 changes: 18 additions & 4 deletions src/microbe_stage/compound_cloud_system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -284,23 +284,36 @@ void
m_position.X, CLOUD_Y_COORDINATE, m_position.Z);

// Clear data. Maybe there is a faster way
if(m_compoundId1 != NULL_COMPOUND) {
for(size_t x = 0; x < m_density1.size(); ++x) {
for(size_t y = 0; y < m_density1[x].size(); ++y) {
if(m_compoundId1 != NULL_COMPOUND) {
m_density1[x][y] = 0;
m_oldDens1[x][y] = 0;
}
}
}

if(m_compoundId2 != NULL_COMPOUND) {
if(m_compoundId2 != NULL_COMPOUND) {
for(size_t x = 0; x < m_density2.size(); ++x) {
for(size_t y = 0; y < m_density2[x].size(); ++y) {
m_density2[x][y] = 0;
m_oldDens2[x][y] = 0;
}
}
}

if(m_compoundId3 != NULL_COMPOUND) {
if(m_compoundId3 != NULL_COMPOUND) {
for(size_t x = 0; x < m_density3.size(); ++x) {
for(size_t y = 0; y < m_density3[x].size(); ++y) {
m_density3[x][y] = 0;
m_oldDens3[x][y] = 0;
}
if(m_compoundId4 != NULL_COMPOUND) {
}
}

if(m_compoundId4 != NULL_COMPOUND) {
for(size_t x = 0; x < m_density4.size(); ++x) {
for(size_t y = 0; y < m_density4[x].size(); ++y) {
m_density4[x][y] = 0;
m_oldDens4[x][y] = 0;
}
Expand Down Expand Up @@ -1134,6 +1147,7 @@ void
// Etc.
if(cloud.m_compoundId3 != NULL_COMPOUND)
fillCloudChannel(cloud.m_density3, 2, rowBytes, pDest);

if(cloud.m_compoundId4 != NULL_COMPOUND)
fillCloudChannel(cloud.m_density4, 3, rowBytes, pDest);

Expand Down

0 comments on commit 9e4cb93

Please sign in to comment.