Commit Graph

7459 Commits

Author SHA1 Message Date
Mathias Agopian
bbf0754183 add a material parameter to control shadow far attenuation
FIXES=[436680157]
2025-08-13 20:22:45 -07:00
Mathias Agopian
45f68909d7 Fix dynamic resolution with TRANSLUCENT views
A few bugs in that area were introduced by #8391. Upscaling is 
supposed to perform the final blending if needed, but it didn't.
Transparency/blending is only supported by the bilinear upscaler, which
is automatically selected in that case.

The upscaling pass itself may include a final `RCAS` pass for
sharpening, in that case, blending must be performed then. So we added
the logic for that.


Fixes #9061
2025-08-13 16:53:16 -07:00
Juan Caldas
7b8412ff01 Update spirv-cross to d8e3e2b141b8c8a167b2e3984736a6baacff316c 2025-08-13 18:08:41 -05:00
Juan Caldas
379a541797 remove dawn 3rd party common libs 2025-08-13 18:08:41 -05:00
Andy Hovingh
32772cde60 wgpu: fix system printing with Dawn/WebGPU version upgrade 2025-08-13 18:08:41 -05:00
Juan Caldas
f5f3324b18 Update webgpu to the latest Dawn 2025-08-13 18:08:41 -05:00
Juan Caldas
9be5dcf2da Upgrade abseil to cae4b6a3990e1431caa09c7b2ed1c76d0dfeab17 2025-08-13 18:08:41 -05:00
Juan Caldas
687577b0a7 Update webgpu with new Dawn changes 2025-08-13 18:08:41 -05:00
Juan Caldas
6acfdfcca3 Update Dawn to chromium/7353 2025-08-13 18:08:41 -05:00
Juan Caldas
69e7592885 Update Spirv-tools to 257a227fbadf8176ea386c7d8fb9b889cbf08640 2025-08-13 18:08:41 -05:00
Juan Caldas
c1430f88c1 Update spirv-headers to c8ad050fcb29e42a2f57d9f59e97488f465c436d 2025-08-13 18:08:41 -05:00
Juan Caldas
a75efea597 Update spirv-cross to b8fcf307f1f347089e3c46eb4451d27f32ebc8d3 2025-08-13 18:08:41 -05:00
Powei Feng
e3cf3d41e3 github: add action for installing vulkansdk (#9084) 2025-08-13 15:38:41 -07:00
Powei Feng
b2e4163ae1 renderdiff: enable multi-threading in rendering (#9057)
- Use threadpool to spawn gltf_viewer calls
- Make sure to use /tmp directories to avoid conflicts between
   different backend and models
2025-08-13 21:45:57 +00:00
Powei Feng
b1f6361d2a Update CMake min version to 3.22.1 (#9098)
The reason for this bump is:
 - third_party/spirv-tools
 - third_party/dawn
2025-08-13 20:07:37 +00:00
Mathias Agopian
d27bd7909d Unit test for LineDictionary and fix subtle bugs
- add conveniences function to make LineDictionary look like a vector
- a pattern must start on a word boundary but "_" wasn't treated as one
- getIndices() must return the empty vector when any of the substring
  is not found
2025-08-13 12:48:25 -07:00
Filament Bot
4c16702e41 [automated] Updating /docs due to commit a9f2253
Full commit hash is a9f2253d93

DOCS_ALLOW_DIRECT_EDITS
2025-08-13 15:52:49 +00:00
Benjamin Doherty
a9f2253d93 Release Filament 1.63.1 2025-08-13 11:47:16 -04:00
Filament Bot
cccf237d93 [automated] Updating /docs due to commit e0bd647
Full commit hash is e0bd647955

DOCS_ALLOW_DIRECT_EDITS
2025-08-12 22:10:00 +00:00
Powei Feng
e0bd647955 github: Update to clang-16 for CI builds (#9093)
Also update documentation on official recommendation of clang
version.
2025-08-12 22:06:30 +00:00
Juan Caldas
d2b9eb5336 Rename std var (#9088) 2025-08-12 21:27:54 +00:00
rafadevai
44e32a765f VK: Add missing ETC2_EAC_RGB8 to VkFormat conversion (#9090)
Map ETC2_EAC_RGBA8 and ETC2_EAC_SRGBA8 to
VK_FORMAT_ETC2_R8G8B8A8_UNORM_BLOCK and
VK_FORMAT_ETC2_R8G8B8A8_SRGB_BLOCK in getVkFormat.
2025-08-12 21:08:07 +00:00
Ben Doherty
c60860368d MetalBlitter: add support for blitting integer formats (#9045) 2025-08-12 16:16:47 -04:00
Mathias Agopian
f5c0fabb10 matc: improvements to LineDictionary compression (#9078)
We can significantly improve the effectiveness of the line dictionary
by splitting lines strategically. spirv optimization tends to create
new variable names (e.g. _1234) that are not always stable between
variants, hereby preventing lines from being duplicated. By simply
splitting lines around these patterns, we improve the effectiveness
of the compression.

The decompression is almost unchanged. To make the code easier, we 
now keep the '\n' at the end of lines in the dictionary. That's the
only change to the decompression side.

On certain materials like aiDefault.mat the compression ratio is
improved from 2.8x to 15x.


This also fixes a small but where the line dictionary relied on the
last line of the input to be a newline.
2025-08-12 12:58:35 -07:00
Matthew Hoffman
c0e7f0c664 Add a filament backend test template. (#9071)
Also fix a small bug in image comparison when there is no file yet.
2025-08-12 19:29:37 +00:00
Powei Feng
0b4ec1c340 github: make mesa setup an action (#9081) 2025-08-12 19:13:31 +00:00
Ben Doherty
781083960c matp: Fix crash when reflecting parameters (#9089) 2025-08-12 13:50:17 -04:00
Filament Bot
b0b40375e1 [automated] Updating /docs due to commit af0f395
Full commit hash is af0f395884

DOCS_ALLOW_DIRECT_EDITS
2025-08-12 06:01:40 +00:00
Powei Feng
af0f395884 Filament targets c++20 by default (#9080) 2025-08-12 05:59:21 +00:00
Powei Feng
f91ba0867e filamat: remove webgpu workaround for opt passes 2025-08-11 15:47:59 -07:00
Mathias Agopian
f85955f77b canonicalize id pass must always run last 2025-08-11 15:45:23 -07:00
Mathias Agopian
a6d5231beb script for updating spirv-cross 2025-08-11 15:45:05 -07:00
Mathias Agopian
23d2027605 script for updating spirv-headers 2025-08-11 15:45:05 -07:00
Mathias Agopian
58d29cee86 script for updating spirv-tools 2025-08-11 15:45:05 -07:00
Mathias Agopian
d721b3f13d update spirv-cross to d8e3e2b 2025-08-11 15:44:45 -07:00
Mathias Agopian
538f497d4d update glslang to version 15.4.0
add a nicer script to update
2025-08-11 15:44:28 -07:00
Ben Doherty
e8e99a0de6 Fix: webgpu error regarding mismatched pipeline (#9056) 2025-08-11 17:30:07 -04:00
Ben Doherty
6630aa5f36 matp: Remove accidental switch fallthrough (#9082) 2025-08-11 17:26:46 -04:00
Powei Feng
bc83ffdcd1 vk: make default render target independent of call order (#9065) 2025-08-11 20:27:53 +00:00
Powei Feng
c21f211a13 Update java for Texture::Usage (#9055)
Also update samples and utils to use proper usage when
generating mipmaps.
2025-08-11 19:47:26 +00:00
Patrik Huber
58d4671c24 Fixes to frame_generator sample (#9050)
* [Fix] frame_generator sample: open ifstream with ios::binary
* [Fix] frame_generator sample: allocate storage for g_materialBuffer
   reserve() merely reserves memory, but does not actually change the size of the vector.
* [Fix] frame_generator sample: destroy materials/renderables during cleanup

Otherwise the sample crashes with a Filament error saying that the material is still associated with a renderable.
2025-08-11 19:21:05 +00:00
Mathias Agopian
93caca7245 fig materialparser assert when shader is not present 2025-08-11 11:11:42 -07:00
Mathias Agopian
bf77c023b9 correctly set STENCIL Usage on color pass texture
the framegraph didn't set the Usage::Stencil on textures it created
for the color pass if stencil was requested. On the GL backend it
didn't matter because that bit is unused.
2025-08-11 11:11:22 -07:00
yein
95128d5f55 Follow up of material parser PR (#9029)
- Fix CMakeLists to correctly include src files in matp test
- Replace std::string to std::string_view
- Also update the test_includer.cpp
2025-08-11 18:05:10 +00:00
Powei Feng
6d17d858de vk: Fix bad layouts/formats when doing generateMipmaps (#9058)
- After genMipmap, transition to shader read layout
- Ensure that the staging image format is TRANSFER_SRC.
2025-08-11 17:49:15 +00:00
Sungun Park
05003ea358 mat: Add CRC32 validation for material packages (#9053)
This commit introduces a CRC32 checksum to material packages to ensure
data integrity.

When a material is loaded, this checksum is verified. If the check
fails, an error is logged, and the material fails to load. For older
material packages without a CRC32 checksum, a warning is logged and
proceed.

BUGS=[373396840]
2025-08-09 00:03:56 +00:00
Matthew Hoffman
98847d6509 Simplify backend tests' EXPECT_IMAGE invocation. (#9052) 2025-08-08 21:55:37 +00:00
Mathias Agopian
d3828cdd1c fix the 3-parameters fresnel calculation
it would automatically degrade to the 2-parameters version in 
LOW_QUALITY mode, but some other code relied on the proper calculation,
in particular when specularFactor was used.


FIXES=[436866605]
2025-08-08 14:18:15 -07:00
Andy Hovingh
4beda6feee wgpu: fix Android build error 2025-08-08 15:32:18 -05:00
Juan Caldas
7cacef9509 Update GLSL for mip test (#9064) 2025-08-08 15:09:27 -04:00