Commit Graph

2928 Commits

Author SHA1 Message Date
Philip Rideout
96feea1dee Avoid deprecated API in the root README. 2020-06-29 15:12:52 -07:00
Philip Rideout
c5acacff67 Vulkan: add note about #1532. 2020-06-29 12:36:47 -07:00
Ben Doherty
92f2004c4b Improve matc error reporting (#2741) 2020-06-29 11:21:56 -07:00
Pixelflinger
aed8c7fcb4 DoF: make all function parameter const
glslang generate much less code when function parameters are marked
const (it also works around a bug where highp intermediate variables
are introduced -- but this will be fixed soon).

Also remove non-trivial uses of ?: as it also triggers a similar problem 
in glslang.
2020-06-29 10:45:08 -07:00
Philip Rideout
29f50e0feb Vulkan: fix intermittent InvalidQuery on Android.
This prevents the following validation error:

    Cannot get query results on queryPool 0x2 with index 0 as data has
    not been collected for this index.

This was occasionally triggered when we attempted to query a timer that
had not yet been inserted into any command stream. (The error seems
bogus to me since we've enabled the AVAILABILITY flag, but we might as
well fix it anyway.)
2020-06-28 04:43:06 -07:00
Romain Guy
2aeb33b260 Fix Windows build 2020-06-26 23:20:23 -07:00
Romain Guy
132e94b3bb Add vignette post-processing effect (#2743)
* Add a vignette post-processing effect

* Use numeric limits instead of hard coded values
2020-06-26 17:44:17 -07:00
Romain Guy
f7f86a7c56 Remove skygen
This will be replaced by a runtime implementation. skygen was
never finished to begin with.
2020-06-26 17:25:08 -07:00
Ben Doherty
4a3984692a Flush pending command buffer in Metal terminate (#2737) 2020-06-26 11:38:56 -07:00
Philip Rideout
c87cffd57a Transition to PRESENT layout only once per frame. 2020-06-25 19:50:34 -07:00
Philip Rideout
4bbc0c05c4 Allow LOAD_OP_LOAD when rendering to swap chain. 2020-06-25 19:50:34 -07:00
Philip Rideout
697b1b6907 Fix intermittent InvalidImageLayout error for main depth buffer. 2020-06-25 19:50:34 -07:00
Mathias Agopian
d3f5164fcb New DoF implementation (#2700)
This implementation is an order of magnitude more efficient, running
in about 6ms on Pixel 4.

We're using the ring binning technique described in "Life of a Bokeh",
SIGGRAPH 2018.
2020-06-25 16:37:16 -07:00
Pixelflinger
8882132f43 fix a use after free in filamat
This would happen when using math -E -a vulkan. GLSLangCleaner lifetime
must be shorter than TProgram/TShader.
I think we can fix this by using another scoped GLSLangCleaner.

Tested successfully with ASAN.
2020-06-25 12:20:16 -07:00
Ben Doherty
89a8592714 Fix, incorrect camera view matrix with non-rigid transformations (#2735) 2020-06-25 11:22:09 -07:00
Philip Rideout
9d35aff2d3 Vulkan: fix bloom on Android by supporting LOAD_OP_LOAD.
If a render target attachment is not cleared or discarded, then it
should be preserved and therefore requires VK_ATTACHMENT_LOAD_OP_LOAD.
2020-06-24 22:33:57 -07:00
Romain Guy
c6e7382cb9 Update README.md 2020-06-24 16:30:23 -07:00
Mingwei Samuel
0be094cd4f Update TypeScipt declarations
- Add missing LightManager$Builder methods.
- Fix IcoSphere.tangents type to be unsigned.
- Add missing IcoSphere.suvdivide() method.
2020-06-24 15:37:15 -07:00
Ben Doherty
81c60c4efa Remove use of deprecated APIs in libfilamentapp (#2729) 2020-06-24 10:47:42 -07:00
Pixelflinger
456e057754 texelFetch w/ LOD requires at least MIPMAP_NEAREST
if NEAREST or LINEAR min filter is used, texelFetch is actually
undefined when the LOD is not 0.
2020-06-23 18:23:16 -07:00
Ben Doherty
ab12881888 Remove camutils dependency on utils (#2727) 2020-06-23 15:28:20 -07:00
Philip Rideout
efaf02ca61 CMake: fix macOS build break. 2020-06-23 15:19:04 -07:00
Philip Rideout
8f7b25088d CMake: build matdbg / civetweb only when enabled.
Also group FILAMENT_ENABLE_MATDBG with all our other CMake options.
2020-06-23 15:19:04 -07:00
Philip Rideout
8f4ffbc782 gltfio: various improvements to skinning normalization.
- Allow JavaScript and Java / Kotlin clients to configure this setting.
- Opt in by default (this was disabled in #2621)
- Optimize large assets like Bistro by iterating through prims only when
  the asset actually has skins.

Fixes #2714.
2020-06-23 13:30:45 -07:00
Mingwei Samuel
455bed917b Fix typescript missing options parameter for createTextureFromX 2020-06-23 09:25:44 -07:00
Ben Doherty
d5033b5857 Silence warnings in public headers (#2722) 2020-06-22 16:56:55 -07:00
Philip Rideout
cf5b6ccba3 Use MAX_MORPH_TARGETS instead of magic number. 2020-06-22 16:02:12 -07:00
Philip Rideout
42c80d5d5e Fix CUBICSPLINE interpolation for morph weights.
Tested with Polly the robo-hound and ensured that InterpolationTest
did not regress.

Partial fix for #2714.
2020-06-22 16:02:12 -07:00
Philip Rideout
2b92b5e060 gltf_viewer: move "Animation" UI
The Animation selector is now a top-level group (collapsed by default),
previously it was in the Hierarchy group, which was non-intuitive.

Also:

- Use indent() for consistency with other UI groups.
- Remove un-necessary usage of a lambda.
2020-06-22 15:43:35 -07:00
Ben Doherty
1762baab61 Remove unused SPIRV-Tools-shared library (#2719) 2020-06-22 14:30:43 -07:00
Ben Doherty
ab98548e75 Fix iOS projects build (#2718) 2020-06-21 22:31:12 -07:00
Ben Doherty
5e2c9e3aff Create universal libraries for iOS releases (#2717) 2020-06-21 19:43:03 -07:00
Ben Doherty
b8ece355d7 Install Filament LICENSE alongside README (#2712) 2020-06-19 18:10:27 -07:00
Ben Doherty
79fb878fb9 Update build instructions link (#2711) 2020-06-19 13:26:18 -07:00
Ben Doherty
026298182e Fix gltfio-java build errors on Windows (#2709) 2020-06-19 10:55:15 -07:00
Philip Rideout
a79effc78b Page Curl: fix CPU animation. 2020-06-18 19:38:41 -07:00
Philip Rideout
66471ee990 Page Curl: add configurable curl style. 2020-06-18 19:35:42 -07:00
Ben Doherty
1fc57b8bf0 Add bitcode to iOS builds (#2708) 2020-06-18 14:00:05 -07:00
Philip Rideout
6b5d21639e gltf_viewer: collapse all UI panels by default 2020-06-18 12:54:45 -07:00
Ben Doherty
d70e317065 Use local iOS toolchain instead of downloading (#2705) 2020-06-18 12:16:40 -07:00
Philip Rideout
a5c49cc1b6 Improve JS API for Scene::addEntities.
This repairs the `animation.html` sample. Using a JS array is more
natural for web developers and more consistent with the latest
JavaScript bindings in gltfio.
2020-06-18 12:16:01 -07:00
Philip Rideout
ce995d021a Improve JS API for SurfaceOrientation helper. (#2706)
* Improve JS API for SurfaceOrientation helper.

Web developers should not be expected to call malloc on the emscripten
heap. This new API is better aligned with how we handle vertex buffers.

Fixes #2702.

* Update web/filament-js/extensions.js

Co-authored-by: Wojciech Czerniak <wojciech.czerniak@gmail.com>

Co-authored-by: Wojciech Czerniak <wojciech.czerniak@gmail.com>
2020-06-18 12:02:02 -07:00
Ben Doherty
9cd2f2edc1 Check in pristine copy of Clang iOS toolchain (#2703) 2020-06-18 10:19:31 -07:00
Philip Rideout
5c64ed5125 gltfio: use highp for UV coords.
Fixes #2500.
2020-06-17 17:27:53 -07:00
Ben Doherty
623cd1a5f2 Remove PDB and ILK files when building for Windows CI (#2698) 2020-06-17 11:13:47 -07:00
Ben Doherty
94776a01b3 Add JNI bindings for gltfio camera (#2693) 2020-06-16 15:24:24 -07:00
Romain Guy
f462eafed0 Update workflows from master branch to main (#2697) 2020-06-16 13:40:34 -07:00
Romain Guy
7d1dbba2b4 Rename reference from master to main 2020-06-16 13:39:51 -07:00
Romain Guy
8c9cc988a6 Update references to master with references to main 2020-06-16 13:35:57 -07:00
@roxlu ☾
7a1d9968a7 Check if an existing material parameter is a sampler (#2694)
* Check if an material parameter is a sampler

* Rename hasSampler to isSampler
2020-06-16 13:32:23 -07:00