Renderer can now be given a DisplayInfo that contains some important information about the current display. This will be used for frame-pacing and dynamic-resolution. This is most relevant on Android, where we can accurately query these parameters. Added support for that in our samples. This also sets the minSDK to 19 (including gltf viewer's), since this is the version we support. We were cheating before by under-reporting our minSdk.
41 lines
1.1 KiB
Groovy
41 lines
1.1 KiB
Groovy
apply plugin: 'com.android.application'
|
|
apply plugin: 'kotlin-android'
|
|
apply plugin: 'kotlin-android-extensions'
|
|
apply plugin: FilamentToolsPlugin
|
|
|
|
project.ext.isSample = true
|
|
|
|
filamentTools {
|
|
cmgenArgs = "-q --format=ktx --size=256 --extract-blur=0.1 --deploy=src/main/assets/envs/venetian_crossroads_2k"
|
|
iblInputFile = file("../../../third_party/environments/venetian_crossroads_2k.hdr")
|
|
iblOutputDir = file("src/main/assets/envs")
|
|
}
|
|
|
|
task copyMesh(type: Copy) {
|
|
from "../../../third_party/models/BusterDrone"
|
|
into "src/main/assets/models"
|
|
}
|
|
|
|
preBuild.dependsOn copyMesh
|
|
|
|
clean.doFirst {
|
|
delete "src/main/assets"
|
|
}
|
|
|
|
android {
|
|
compileSdkVersion versions.compileSdk
|
|
defaultConfig {
|
|
applicationId "com.google.android.filament.gltf"
|
|
minSdkVersion 19
|
|
targetSdkVersion versions.targetSdk
|
|
missingDimensionStrategy 'functionality', 'full'
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation deps.kotlin
|
|
implementation project(':filament-android')
|
|
implementation project(':gltfio-android')
|
|
implementation project(':filament-utils-android')
|
|
}
|