A new depth of field (DoF) post-process effect

This commit is contained in:
Pixelflinger
2020-04-23 20:39:07 -07:00
committed by Mathias Agopian
parent 64609cc4aa
commit 4e873e8007
18 changed files with 541 additions and 57 deletions

View File

@@ -252,3 +252,10 @@ Java_com_google_android_filament_View_nSetBlendMode(JNIEnv *, jclass , jlong nat
View* view = (View*) nativeView;
view->setBlendMode((View::BlendMode)blendMode);
}
extern "C" JNIEXPORT void JNICALL
Java_com_google_android_filament_View_nSetDepthOfFieldOptions(JNIEnv *, jclass ,
jlong nativeView, jfloat focusDistance, jfloat blurScale, jboolean enabled) {
View* view = (View*) nativeView;
view->setDepthOfFieldOptions({ .focusDistance = focusDistance, .blurScale = blurScale, .enabled = (bool)enabled });
}