From 95dfe3ed668e9b9a20b25ef0c501340728e6bddb Mon Sep 17 00:00:00 2001 From: mbjornstk Date: Mon, 7 Feb 2011 03:29:55 +0000 Subject: [PATCH] Raise rain cylinder from 3 to 5, so the kart and camera are under rain too. Things to do would be adding constant wheel splotches and maybe a fixed plane in front of the camera to darken/reduce contrast everywhere and give it a wet look (or change the materials to be darker & shinnier, but karts' textures...). git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7647 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/graphics/rain.cpp | 6 +++--- src/graphics/rain.hpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/graphics/rain.cpp b/src/graphics/rain.cpp index 37e3d0104..e7f74eb56 100644 --- a/src/graphics/rain.cpp +++ b/src/graphics/rain.cpp @@ -22,13 +22,13 @@ #include "graphics/material.hpp" #include "graphics/rain.hpp" -const float RAIN_RADIUS[RAIN_RING_COUNT] = { 6.0f, 12.0f, 24.0f }; +const float RAIN_RADIUS[RAIN_RING_COUNT] = { 1.0f, 3.0f, 6.0f, 12.0f, 24.0f }; const float RAIN_Y_TO = 25.0f; const float RAIN_Y_FROM = -10.0f; const float RAIN_DY = 2.5f; -const float TEXTURE_X_TILES[RAIN_RING_COUNT] = { 3.5f, 5.0f, 8.0f }; -const float TEXTURE_Y_TILES[RAIN_RING_COUNT] = { 6.0f, 4.0f, 4.0f}; +const float TEXTURE_X_TILES[RAIN_RING_COUNT] = { 2.0f, 2.5f, 3.5f, 5.0f, 8.0f }; +const float TEXTURE_Y_TILES[RAIN_RING_COUNT] = { 8.0f, 7.0f, 6.0f, 4.0f, 4.0f }; Rain::Rain(irr::scene::ISceneNode* parent) diff --git a/src/graphics/rain.hpp b/src/graphics/rain.hpp index ca3e2aae0..f6c261baa 100644 --- a/src/graphics/rain.hpp +++ b/src/graphics/rain.hpp @@ -21,7 +21,7 @@ #define HEADER_RAIN_HPP #include -const int RAIN_RING_COUNT = 3; +const int RAIN_RING_COUNT = 5; class Rain {