Add TAA java bindings

This commit is contained in:
Pixelflinger
2020-08-09 00:24:22 -07:00
committed by Mathias Agopian
parent 931daf3a69
commit 05bfa632ff
2 changed files with 51 additions and 1 deletions

View File

@@ -268,3 +268,12 @@ Java_com_google_android_filament_View_nSetVignetteOptions(JNIEnv*, jclass, jlong
view->setVignetteOptions({.midPoint = midPoint, .roundness = roundness, .feather = feather,
.color = LinearColorA{r, g, b, a}, .enabled = (bool)enabled});
}
extern "C"
JNIEXPORT void JNICALL
Java_com_google_android_filament_View_nSetTemporalAntiAliasingOptions(JNIEnv *, jclass,
jlong nativeView, jfloat feedback, jfloat filterWidth, jboolean enabled) {
View* view = (View*) nativeView;
view->setTemporalAntiAliasingOptions({
.feedback = feedback, .filterWidth = filterWidth, .enabled = (bool) enabled});
}