Mathias Agopian
a484fe1de3
rename ChunkcContainer::addChild/addSimpleChild to push/emplace ( #6704 )
...
'child' didn't make any sense in this API, push/emplace mimics
std::vector, which is closer to what the api actually does.
2023-04-03 14:06:42 -07:00
Mathias Agopian
e48690bdf9
matc: new feature-level options
...
The feature-level option sets the maximum feature level allowed for
the material. matc will fail if the specified material has a higher
feature level than the value set with the feature-level option. The
default is 3 (max).
This can be used to ensure that materials don't use features above
a specified level.
2023-04-03 14:05:38 -07:00
Mathias Agopian
bc40ff7f19
fix typos in documentation
...
Fixes #6294
2023-03-31 15:27:50 -07:00
Mathias Agopian
30979124b5
skinning now works when the model is far from the origin
...
We are doing skinning computations effectively in world space, so
some of the math must be done in high-precision.
2023-03-31 14:47:54 -07:00
Mathias Agopian
6eb4c5e356
gltf_viewer: debug option to move the origin far away
2023-03-31 14:47:54 -07:00
Ben Doherty
38ede3719f
TangentSpaceMesh fixes ( #6697 )
2023-03-31 12:03:49 -07:00
Mathias Agopian
4503ad1e34
fix -ffast-math and -fno-finite-math-only
...
- remove -ffast-math in place where it didn't seem too useful
- added -fno-finite-math-only everywhere we use -ffast-math so that
isinf/isnan work.
2023-03-30 16:15:42 -07:00
Romain Guy
9fc6b0d654
Update LICENSE ( #6691 )
2023-03-28 17:27:31 -07:00
Romain Guy
d00223332e
Update README.md
2023-03-28 15:22:20 -07:00
Mathias Agopian
d3013ae151
better selection of opengl context version on desktop
...
fixes #6682
2023-03-28 11:59:05 -07:00
Mathias Agopian
b2fc46c320
start froxelization earlier
2023-03-28 10:46:11 -07:00
Romain Guy
53aac259a0
Fix emscripten compilation errors and warnings ( #6688 )
...
These errors and warnings only appear with more recent versions of
the emscripten SDK.
2023-03-27 17:33:45 -07:00
Powei Feng
af35b87d5b
vulkan: prefer discrete GPU over integrated ( #6677 )
2023-03-27 08:09:16 -07:00
Mathias Agopian
0171452b02
fix stream unit-test
2023-03-24 17:30:00 -07:00
alexfh
065a33c846
Add a missing #include <exception>
...
... which is needed to avoid compilation error with recent LLVM libc++ (after https://reviews.llvm.org/D146097 ). Previously, symbols like std::terminate() were available through other headers (e.g. <functional>, <vector>, etc.).
2023-03-24 17:21:28 -07:00
Mathias Agopian
90601b9471
update remote ui
2023-03-24 17:19:35 -07:00
Romain Guy
327f630ed7
Update web demos
2023-03-24 09:38:42 -07:00
Mathias Agopian
96acc6900d
gltf_viewer now respects FILAMENT_DISABLE_MATOPT
...
debug builds are unchanged, release builds will now optimize shaders and
either build can be overridden with OPTIMIZE_MATERIALS.
2023-03-24 09:23:10 -07:00
Mathias Agopian
91cc36f1ec
fix IDE warnings
...
mostly const decorators.
2023-03-24 09:22:53 -07:00
Mathias Agopian
575e54e5d6
convert floats to their smallest string representation
2023-03-23 15:23:18 -07:00
Mathias Agopian
9a2fd38f33
update libutils to output floats/double without loss
2023-03-23 15:23:18 -07:00
Mathias Agopian
7cba0da0a2
implement cascades visualization as a post-process
...
this allows us to remove code from the main shaders that is basically
never used, reducing shader size and runtime costs.
2023-03-23 12:11:56 -07:00
Mathias Agopian
d8eb48c9de
Improvements to fog
...
- FogOption::color is now correctly multiplied by the exposure and
environment intensity.
- New option to exclude the skybox from the fog
- better documentation and naming
2023-03-23 09:31:01 -07:00
Mathias Agopian
3ccd592eab
fix manual instancing
...
only use the instanced UBO with automatic instancing.
Fixes #6579
2023-03-23 09:30:36 -07:00
Benjamin Doherty
a157546d82
Release Filament 1.32.1
2023-03-21 15:47:47 -07:00
Mathias Agopian
3ec704b91c
fix world-space coords of DEVICE vertex domain at infinity
...
In device vertex domain it is easy to specify infinite world-space
coordinated (e.g. with the skybox), this results in complications
everywhere. We were mitigating this by essentially moving these
coordinates to around 16000 (give or take depending on the near plane),
but that was way too small.
Now we move them around 1e19, which seems to work. It's important with
applications rendering very large scenes to not use too small of a value.
2023-03-21 11:11:17 -07:00
Romain Guy
331af7bf35
Add sun size and halo properties to glTF viewer controls. ( #6655 )
...
This change also simplifies libviewer by removing duplicated code.
2023-03-21 10:08:20 -07:00
Mathias Agopian
473aff9093
Fix a bug in matdbg where it could reorder the shaders in the package ( #6656 )
...
This happened because the code iterated over the keys of a hashmap,
which obviously were not guaranteed to be in the same order as those
entries where added to the hashmap.
We fix this by adding a "visitor" to the materialchunk, so we can
iterate through it in order and retried the info we need.
2023-03-21 10:00:33 -07:00
Powei Feng
6ff08f2ac1
Update filament rendering test ( #6654 )
...
- If the callback isn't called, fail.
- Simplify by disabling post-processing.
2023-03-21 09:50:13 -07:00
Romain Guy
3db7f6675e
The sun disc should be computed in high quality only. ( #6653 )
...
This will provide a boost to mobile devices by not computing the sun
disc as it was intended.
2023-03-20 16:20:46 -07:00
Powei Feng
e501a15ef2
gltfio: Release cancelled, decoded texture resources ( #6620 )
...
When we call TextureProvider::cancelDecoding, we should make sure
that textures that have been decoded, but not yet used (popped)
should be released (i.e. memory freed and the meta data marked
appropriately.)
2023-03-20 10:34:24 -07:00
Powei Feng
4e8974bcd9
vulkan: disable xlib when using swiftshader ( #6647 )
2023-03-17 16:21:03 -07:00
Andi Smithers
7914372707
Update Materials.md.html ( #6646 )
...
Fixed typo in the source documentation : getUserTimeMode(float m) which should be getUserTimeMod(float m)
2023-03-17 12:36:39 -07:00
Ben Doherty
3c794247c3
Update web docs ( #6645 )
2023-03-17 00:34:39 -07:00
Powei Feng
ae12e3a51c
Revert "vulkan: async readPixels ( #6605 )" ( #6644 )
...
This reverts commit 6f25e8ae5a .
Reason for revert: breaks clients that were expecting synchronous readPixels for vulkan
2023-03-16 12:55:19 -07:00
Benjamin Doherty
fdc2ab30c0
Include atomic in VulkanCommands.h
2023-03-15 11:15:04 -07:00
mackong
122541eedc
web: fix animation stopped premature ( #6630 )
2023-03-14 10:52:34 -07:00
Benjamin Doherty
7e54bc8bcd
Release Filament 1.32.0
2023-03-14 10:46:08 -07:00
Ben Doherty
e1ebe97eb5
Vulkan: fix stack use-after-free ( #6639 )
2023-03-14 10:25:01 -07:00
Powei Feng
9fed30af55
gltf-viewer: update API/backend usage description ( #6638 )
2023-03-13 23:22:30 -07:00
mackong
4fd02d7e75
gltfio: fix crash when custom attributes used
2023-03-13 15:16:36 -07:00
Daniel Rahme
e30a99f692
Fix wrong package name
2023-03-13 15:14:46 -07:00
mackong
b891c52d9b
web: fix getWorldTransform typo
2023-03-13 15:14:21 -07:00
Benjamin Doherty
74eb8a77e5
Bump MATERIAL_VERSION to 32
2023-03-13 14:04:40 -07:00
Mathias Agopian
ba59d6d1b7
update webgl samples and remote ui
2023-03-09 15:11:29 -08:00
Ben Doherty
46efeb7fa8
Fix RELEASE_GUIDE numbering
2023-03-09 10:50:06 -08:00
Ben Doherty
673c1104b2
Update RELEASE_GUIDE
...
Reflect the NEW_RELEASE_NOTES process
2023-03-09 10:48:06 -08:00
Benjamin Doherty
7cca872af5
Release Filament 1.31.7
2023-03-09 10:39:17 -08:00
Mathias Agopian
3cef1991b2
Minor cleanup of GL backend
2023-03-08 12:49:22 -08:00
Mathias Agopian
64493d8636
Fix timer query breakage on webgl
2023-03-08 12:06:59 -08:00