This adds support for decoding HDR files, dropping them into the remote web page, and sending them over the wire. However the decoded results are not yet passed into IBLPrefilterContext, that will be subsequent PR. Rename KtxLoader to KTXLoader. The remote UI has been tweaked a bit, so that it shows a more helpful message when disconnected.
44 lines
1.4 KiB
Groovy
44 lines
1.4 KiB
Groovy
apply plugin: 'com.android.application'
|
|
apply plugin: 'kotlin-android'
|
|
apply plugin: FilamentToolsPlugin
|
|
|
|
project.ext.isSample = true
|
|
|
|
filamentTools {
|
|
materialInputDir = project.layout.projectDirectory.dir("src/main/materials")
|
|
materialOutputDir = project.layout.projectDirectory.dir("src/main/assets/materials")
|
|
|
|
meshInputFile = project.layout.projectDirectory.file("../../../third_party/models/shader_ball/shader_ball.obj")
|
|
meshOutputDir = project.layout.projectDirectory.dir("src/main/assets/models")
|
|
|
|
iblInputFile = project.layout.projectDirectory.file("../../../third_party/environments/flower_road_no_sun_2k.hdr")
|
|
iblOutputDir = project.layout.projectDirectory.dir("src/main/assets/envs")
|
|
}
|
|
|
|
clean.doFirst {
|
|
delete "src/main/assets"
|
|
}
|
|
|
|
android {
|
|
compileSdkVersion versions.compileSdk
|
|
defaultConfig {
|
|
applicationId "com.google.android.filament.textured"
|
|
minSdkVersion versions.minSdk
|
|
targetSdkVersion versions.targetSdk
|
|
missingDimensionStrategy 'functionality', 'full'
|
|
}
|
|
|
|
// We use the .filamat extension for materials compiled with matc
|
|
// Telling aapt to not compress them allows to load them efficiently
|
|
aaptOptions {
|
|
noCompress 'filamat', 'ktx'
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation deps.kotlin
|
|
implementation project(':filament-android')
|
|
implementation project(':gltfio-android')
|
|
implementation project(':filament-utils-android') // required for KTXLoader
|
|
}
|