diff options
| author | Stanislaw Skowronek <skylark@disorder.sko> | 2013-11-16 03:25:30 (GMT) |
|---|---|---|
| committer | Stanislaw Skowronek <skylark@disorder.sko> | 2013-11-16 03:25:30 (GMT) |
| commit | 4f2d1e0cba1542311bd441c1eded463ac910f9ac (patch) | |
| tree | 42e270ff18bca86f79c257a00a4a7649cfa601f8 | |
| parent | 4e2f388b79ba89fd9f13805b2e69d6311f928f75 (diff) | |
| download | powder-4f2d1e0cba1542311bd441c1eded463ac910f9ac.zip powder-4f2d1e0cba1542311bd441c1eded463ac910f9ac.tar.gz | |
Fix a renderer bug that made all solids gray.
| -rw-r--r-- | src/graphics/Renderer.cpp | 4 | ||||
| -rw-r--r-- | src/simulation/elements/FUSE.cpp | 4 | ||||
| -rw-r--r-- | src/simulation/elements/PLEX.cpp | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/graphics/Renderer.cpp b/src/graphics/Renderer.cpp index 3550b41..7825d36 100644 --- a/src/graphics/Renderer.cpp +++ b/src/graphics/Renderer.cpp @@ -1314,8 +1314,8 @@ void Renderer::render_parts() if(sim->parts[i].sld) { int pat; colr = (colr*15) >> 4; - colg = (colr*15) >> 4; - colb = (colr*15) >> 4; + colg = (colg*15) >> 4; + colb = (colb*15) >> 4; switch(sim->parts[i].sld & 3) { case 0: pat = ((nx + ny) & 7) < 4; break; case 1: pat = ((nx - ny) & 7) < 4; break; diff --git a/src/simulation/elements/FUSE.cpp b/src/simulation/elements/FUSE.cpp index 9eb5e37..827895c 100644 --- a/src/simulation/elements/FUSE.cpp +++ b/src/simulation/elements/FUSE.cpp @@ -12,9 +12,9 @@ Element_FUSE::Element_FUSE() Advection = 0.0f; AirDrag = 0.00f * CFDS; AirLoss = 0.90f; - Loss = 0.00f; + Loss = 0.99f; Collision = 0.0f; - Gravity = 0.0f; + Gravity = 0.08f; Diffusion = 0.0f; HotAir = 0.0f * CFDS; Falldown = 0; diff --git a/src/simulation/elements/PLEX.cpp b/src/simulation/elements/PLEX.cpp index 2b8c867..390825f 100644 --- a/src/simulation/elements/PLEX.cpp +++ b/src/simulation/elements/PLEX.cpp @@ -12,9 +12,9 @@ Element_PLEX::Element_PLEX() Advection = 0.0f; AirDrag = 0.00f * CFDS; AirLoss = 0.90f; - Loss = 0.00f; + Loss = 0.99f; Collision = 0.0f; - Gravity = 0.0f; + Gravity = 0.1f; Diffusion = 0.00f; HotAir = 0.000f * CFDS; Falldown = 0; |
