improve contact shadows support

- contact shadows are now supported for point and spot lights
- and are now independent from regular shadows, that is they can
  be enabled without enabling regular shadows

The only limitation currently is that the distance and step count for
ALL contact shadow are taken from the directional light options.
This commit is contained in:
Pixelflinger
2020-04-17 17:40:32 -07:00
committed by Mathias Agopian
parent 0691283a99
commit 56285d6227
17 changed files with 162 additions and 52 deletions
@@ -23,6 +23,13 @@
using namespace filament;
using namespace utils;
extern "C" JNIEXPORT jint JNICALL
Java_com_google_android_filament_LightManager_nGetComponentCount(JNIEnv*, jclass,
jlong nativeLightManager) {
LightManager *lm = (LightManager *) nativeLightManager;
return lm->getComponentCount();
}
extern "C" JNIEXPORT jboolean JNICALL
Java_com_google_android_filament_LightManager_nHasComponent(JNIEnv*, jclass,
jlong nativeLightManager, jint entity) {