aboutsummaryrefslogtreecommitdiff
path: root/advtrains_luaautomation/README.txt
diff options
context:
space:
mode:
Diffstat (limited to 'advtrains_luaautomation/README.txt')
0 files changed, 0 insertions, 0 deletions
2.1 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include "irrlichttypes_extrabloated.h" #include <ISceneNode.h> #ifndef SKY_HEADER #define SKY_HEADER #define SKY_MATERIAL_COUNT 3 #define SKY_STAR_COUNT 200 // Skybox, rendered with zbuffer turned off, before all other nodes. class Sky : public scene::ISceneNode { public: //! constructor Sky(scene::ISceneNode* parent, scene::ISceneManager* mgr, s32 id); virtual void OnRegisterSceneNode(); //! renders the node. virtual void render(); virtual const core::aabbox3d<f32>& getBoundingBox() const; // Used by Irrlicht for optimizing rendering virtual video::SMaterial& getMaterial(u32 i) { return m_materials[i]; } // Used by Irrlicht for optimizing rendering virtual u32 getMaterialCount() const { return SKY_MATERIAL_COUNT; } void update(float m_time_of_day, float time_brightness, float direct_brightness, bool sunlight_seen);