Add Texture getters to IndirectLight and Skybox.

Fixes #2851.
This commit is contained in:
Philip Rideout
2020-08-07 08:50:57 -07:00
parent 0584cea125
commit 732a6c08de
15 changed files with 113 additions and 10 deletions

View File

@@ -98,3 +98,11 @@ Java_com_google_android_filament_Skybox_nSetColor(JNIEnv *, jclass,
Skybox *skybox = (Skybox *) nativeSkybox;
skybox->setColor({r, g, b, a});
}
extern "C" JNIEXPORT jlong JNICALL
Java_com_google_android_filament_Skybix_nGetTexture(JNIEnv* env, jclass,
jlong nativeSkybox) {
Skybox *skybox = (Skybox *) nativeSkybox;
Texture const *tex = skybox->getTexture();
return (jlong) tex;
}