A new depth of field (DoF) post-process effect
This commit is contained in:
committed by
Mathias Agopian
parent
64609cc4aa
commit
4e873e8007
@@ -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 });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user