forked from Mirrors/openclonk
![]() The color of object lights can now be changed. This includes the following changes: - added light test scenario, based on DarkCastle, with some lights, - new functions SetLightColor() and GetLightColor() with C4Script documentation, - third drawing pass for rendering the light color, the drawing passes are now referenced by enum, - the blending of light from multiple colored light sources works correctly with alpha blending, - light color value affects the intensity of the light, - alpha blending of the light depends on color value and lightness. This means that brighter (= more value) and lighter (= more whiteish) light will be preferred in blending over other lights, - the object light color is rendered to the lower half of the fow light texture now, - the shader accesses the brightness/direction information and color information correctly, The patch was created from the following commits: dab898a SetLightColor() f57286e Color texture experiment d0702f5 Dynamic color fa14cdf Light test scenario f99203d Alternate lights 474bade Bugfixes 3113698 Brightness handled better 516fb21 GetLightColor 1d91ec9 Improvements 3cfbf6c Documentation 95ec185 Improvements: Light Shader a63bffc Scope of alpha 20c7ca0 Improvement: C4FoWLight 17d9123 Undo code style d79411b Cleaner code (cherry picked from commit 36dec610e36860b88417e91ce727250673bc2ec2) Conflicts: src/landscape/fow/C4FoWRegion.cpp, merged |
||
---|---|---|
cmake | ||
docs | ||
include/c4script | ||
licenses | ||
masterserver | ||
planet | ||
src | ||
tests | ||
thirdparty | ||
tools | ||
.git_archival | ||
.gitattributes | ||
.gitignore | ||
.travis.yml | ||
CMakeLists.txt | ||
COPYING | ||
Credits.txt | ||
README | ||
TRADEMARK | ||
Version.txt | ||
config.h.cmake | ||
openclonk.desktop | ||
scriptdefinitionsources.txt |
README
Requirements ============ You should be able to build OpenClonk with any C++ compiler that supports ISO C++11. That said, on Windows, we recommend using Microsoft Visual C++ 2010 or higher; the Express edition will be sufficient. On Linux, you will be fine with GNU g++ 4.6 or later. Apple users should use a clang-based XCode version. To generate project files for your chosen build system, you will also have to install CMake from http://www.cmake.org/. Additionally, OpenClonk depends on a number of third-party libraries: - zlib (http://zlib.net/) - libpng (http://www.libpng.org/pub/png/libpng.html) - libjpeg-turbo (http://sourceforge.net/projects/libjpeg-turbo/files/) - FreeType (http://www.freetype.org/) - The OpenGL Extension Wrangler Library (http://glew.sourceforge.net/) - FreeALUT (https://github.com/vancegroup/freealut) - libogg and libvorbis (https://www.xiph.org/downloads/) - Boost (http://www.boost.org/users/download/) OS X Specific ============= OpenClonk supports OS X versions 10.8 "Mountain Lion" and later. If you are using brew (https://github.com/mxcl/homebrew) or MacPorts (http://www.macports.org/), the packages you'll have to install are: libjpeg, libpng, freetype, glew, libogg, libvorbis, boost Linux Specific ============== For building OpenClonk on Linux, you need the following libraries in addition to the ones listed above: - GTK+ 2.0 or 3.0 (http://www.gtk.org) - libGL (http://www.mesa3d.org/) - SDL 1.2 (http://www.libsdl.org/download-1.2.php) - SDL_mixer 1.2 (http://www.libsdl.org/projects/SDL_mixer/release-1.2.html) - libupnp - libxrandr Most distributions should provide these dependencies via their packaging system. For Debian based distributions, you will need these packages: build-essential cmake imagemagick libboost-dev libboost-regex-dev libfreetype6-dev libgl1-mesa-dev libglew-dev libgtk2.0-dev libjpeg-dev libpng-dev libsdl1.2-dev libsdl-mixer1.2-dev libupnp-dev libxrandr-dev x11proto-core-dev zlib1g-dev Windows Specific ================ In addition to the libraries above, you will need one more if you want to target Windows: - OpenAL Soft (http://kcat.strangesoft.net/openal.html) To create an installer, you will also need the Nullsoft Install System (http://nsis.sourceforge.net/). To create the installer, build the "setup" target.