Skip to content

Commit

Permalink
Merge branch 'rc/1.40.1' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
bejado committed Jul 12, 2023
2 parents a445c4e + b7b4d3c commit a5b5b0c
Show file tree
Hide file tree
Showing 9 changed files with 43 additions and 16 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ repositories {
}
dependencies {
implementation 'com.google.android.filament:filament-android:1.40.0'
implementation 'com.google.android.filament:filament-android:1.40.1'
}
```

Expand All @@ -50,7 +50,7 @@ Here are all the libraries available in the group `com.google.android.filament`:
iOS projects can use CocoaPods to install the latest release:

```
pod 'Filament', '~> 1.40.0'
pod 'Filament', '~> 1.40.1'
```

### Snapshots
Expand Down
10 changes: 7 additions & 3 deletions RELEASE_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,15 @@ Before starting, ensure that each of these branches is up-to-date with origin:
- rc/$RELEASE
- main

## 0. Make sure the rc/$RELEASE branch has the correct version.
## 0. Check versions.

It should have the version corresponding to its name, $RELEASE.
Make sure the rc/$RELEASE branch has the correct Filament version. It should have the version
corresponding to its name, $RELEASE.

## 1. Bump versions on main to $RELEASE.
Make sure `MATERIAL_VERSION` has been bumped to a new version if this is a MAJOR or MINOR release
(first two version numbers).

## 1. Bump Filament versions on main to $RELEASE.

Checkout main and run the following command to bump Filament's version to $RELEASE:

Expand Down
2 changes: 2 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ A new header is inserted each time a *tag* is created.
Instead, if you are authoring a PR for the main branch, add your release note to
[NEW_RELEASE_NOTES.md](./NEW_RELEASE_NOTES.md).

## v1.40.1

## v1.40.0

- matc: fix VSM high precision option on mobile [⚠️ **Recompile materials**]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ class ModelViewer(
asset = assetLoader.createAsset(buffer)
asset?.let { asset ->
resourceLoader.asyncBeginLoad(asset)
animator = asset.getInstance().animator
animator = asset.instance.animator
asset.releaseSourceData()
}
}
Expand All @@ -214,7 +214,7 @@ class ModelViewer(
resourceLoader.addResourceData(uri, resourceBuffer)
}
resourceLoader.asyncBeginLoad(asset)
animator = asset.getInstance().animator
animator = asset.instance.animator
asset.releaseSourceData()
}
}
Expand Down Expand Up @@ -311,7 +311,7 @@ class ModelViewer(
var count = 0
val popRenderables = { count = asset.popRenderables(readyRenderables); count != 0 }
while (popRenderables()) {
for (i in 0..count - 1) {
for (i in 0 until count) {
val ri = rcm.getInstance(readyRenderables[i])
rcm.setScreenSpaceContactShadows(ri, true)
}
Expand Down Expand Up @@ -371,7 +371,7 @@ class ModelViewer(
resourceLoader.addResourceData(uri, buffer)
}
resourceLoader.asyncBeginLoad(asset)
animator = asset.getInstance().animator
animator = asset.instance.animator
asset.releaseSourceData()
}
}
Expand Down
2 changes: 1 addition & 1 deletion android/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
GROUP=com.google.android.filament
VERSION_NAME=1.40.0
VERSION_NAME=1.40.1

POM_DESCRIPTION=Real-time physically based rendering engine for Android.

Expand Down
3 changes: 2 additions & 1 deletion filament/backend/include/backend/platforms/PlatformEGL.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,9 @@ class PlatformEGL : public OpenGLPlatform {
} egl;
} ext;

private:
void initializeGlExtensions() noexcept;

private:
EGLConfig findSwapChainConfig(uint64_t flags) const;
};

Expand Down
4 changes: 2 additions & 2 deletions ios/CocoaPods/Filament.podspec
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Pod::Spec.new do |spec|
spec.name = "Filament"
spec.version = "1.40.0"
spec.version = "1.40.1"
spec.license = { :type => "Apache 2.0", :file => "LICENSE" }
spec.homepage = "https://google.github.io/filament"
spec.authors = "Google LLC."
spec.summary = "Filament is a real-time physically based rendering engine for Android, iOS, Windows, Linux, macOS, and WASM/WebGL."
spec.platform = :ios, "11.0"
spec.source = { :http => "https://github.com/google/filament/releases/download/v1.40.0/filament-v1.40.0-ios.tgz" }
spec.source = { :http => "https://github.com/google/filament/releases/download/v1.40.1/filament-v1.40.1-ios.tgz" }

# Fix linking error with Xcode 12; we do not yet support the simulator on Apple silicon.
spec.pod_target_xcconfig = {
Expand Down
24 changes: 22 additions & 2 deletions libs/utils/src/Log.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
# endif
#endif

#if defined(__EMSCRIPTEN__)
#include <emscripten/console.h>
#endif

namespace utils {
namespace io {

Expand Down Expand Up @@ -66,7 +70,23 @@ ostream& LogStream::flush() noexcept {
__android_log_write(ANDROID_LOG_VERBOSE, UTILS_LOG_TAG, buf.get());
break;
}
#else // ANDROID
#elif defined(__EMSCRIPTEN__)
switch (mPriority) {
case LOG_DEBUG:
case LOG_WARNING:
case LOG_INFO:
_emscripten_out(buf.get());
break;
case LOG_ERROR:
_emscripten_err(buf.get());
break;
case LOG_VERBOSE:
#ifndef NFIL_DEBUG
_emscripten_out(buf.get());
#endif
break;
}
#else // not ANDROID or EMSCRIPTEN
switch (mPriority) {
case LOG_DEBUG:
case LOG_WARNING:
Expand All @@ -82,7 +102,7 @@ ostream& LogStream::flush() noexcept {
#endif
break;
}
#endif // __ANDROID__
#endif // __ANDROID__ or __EMSCRIPTEN__
buf.reset();
return *this;
}
Expand Down
2 changes: 1 addition & 1 deletion web/filament-js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "filament",
"version": "1.40.0",
"version": "1.40.1",
"description": "Real-time physically based rendering engine",
"main": "filament.js",
"module": "filament.js",
Expand Down

0 comments on commit a5b5b0c

Please sign in to comment.