However, this is not ideal, as this code will trigger a recompilation of the shader on each pass, in case there is more than 1 lighting pass. Another way could be to multiply the indirect lighting contribution by the Ambient light color in the shader, and always perform the indirect lighting code (even without light probe). As in the second pass ambient light is forced to 0, the indirect lighting contribution would be nullified. However we'd have to force ambient light to 0 if there are no light probe. This would also have the nice side effect of having a way to dim or boost indirect lighting with the ambient light color.
jMonkeyEngine
jMonkeyEngine is a 3D game engine for adventurous Java developers. It’s open source, cross platform and cutting edge. And it is all beautifully documented. The 3.0 branch is the latest stable version of the jMonkeyEngine 3 SDK, a complete game development suite. We'll be frequently submitting stable 3.0.x updates until the major 3.1 version arrives.
The engine is used by several commercial game studios and computer-science courses. Here's a taste:
- jME powered games on IndieDB
- Maker's Tale
- Boardtastic 2
- Copod
- Attack of the Gelatinous Blob
- Chaos
- Mythruna
- PirateHell
- 3089 (on steam)
- 3079 (on steam)
Getting started
Go to http://hub.jmonkeyengine.org/downloads/ to download the jMonkeyEngine SDK. Read the wiki for a complete install guide. Power up with some SDK Plugins and AssetPacks and you are off to the races. At this point you're gonna want to join the forum so our tribe can grow stronger.
Note: The master branch on GitHub is a development version of the engine and is NOT MEANT TO BE USED IN PRODUCTION, it will break constantly during development of the stable jME versions!
Technology Stack
- Java
- NetBeans Platform
- Gradle
Plus a bunch of awesome libraries & tight integrations like Bullet, Blender, NiftyGUI and other goodies.
Documentation
Did you miss it? Don't sweat it, here it is again.
Contributing
Read our contribution guide.
License
New BSD (3-clause) License. In other words, you do whatever makes you happy!