Ben Doherty
bf3f7e0aef
Fix, assertion with shadowReceiver = false and VSM ( #5055 )
2022-01-18 13:44:48 -08:00
Mathias Agopian
0fb04c576d
improve structure pass performance when not used
...
Move the command generation of the structure pass into its execute
block, meaning that if the structure pass is culled, the command
generation is now skipped too.
2022-01-18 12:21:36 -08:00
Mathias Agopian
caaa404d96
add basic support for Android Thermal Manager
2022-01-18 11:37:26 -08:00
daemyung jang
2fa6e6d031
Remove an useless log
2022-01-18 10:35:39 -08:00
daemyung jang
62bb25b26d
Fix, potential null dereferences in OpenGLProgram
...
Morphing is enabled but no morph targets in some models.
2022-01-18 10:35:39 -08:00
Mathias Agopian
8d1402d37b
Bring back the 3x3 filter for PCF shadows
...
The same can be achieved with VSM + blur=3 however, this is noticeably
slower. Also when using transparent shadows, VSM needs a much larger
blur to iron out the dithering pattern.
Fixes #5048 , #5039
2022-01-14 15:08:46 -08:00
Ben Doherty
afd657d6af
Fix, incorrect refractions with screen-space reflections disabled ( #5051 )
2022-01-13 16:54:47 -08:00
Romain Guy
27a5158147
Update tone mapping operators notebook
2022-01-13 15:38:19 -08:00
Mathias Agopian
dead7ab2ac
Use NDK29 new (and experimental) way to access NDK functions
...
This uses compile time guarded calls to weak symbols, and allows us to
call NDK APIs without having to dlsym() them.
2022-01-13 15:20:26 -08:00
Mathias Agopian
352acff396
improve documentation regarding post-processing and render targets
...
Fixes #5015
2022-01-13 09:59:58 -08:00
Ben Doherty
00d9c6921d
Add initial glossy screen-space reflections ( #4946 )
2022-01-12 13:59:11 -08:00
daemyung jang
6805940bbf
Compute morphing on GPU ( #4999 )
2022-01-12 11:06:47 -08:00
Romain Guy
954f9112e4
Replace generic tonemap curve with a simpler one ( #5041 )
...
* Replace generic tonemap curve with a simpler one
This change removes the shoulder parameter which had inconsistent
behaviors. The new curve is simpler and designed to still match
by default the gray point and the contrast of ACES in a bright
surround.
* Fix build
2022-01-12 09:55:35 -08:00
hzzengxiaoqi
6465b9ade8
fix bug of GLTFIO_LITE, the macro GLTFRESOURCES_LITE_LIT_BLEND_DATA is not defined anywhere, it should be GLTFRESOURCES_LITE_LIT_FADE_DATA. This solves the issue of rendering transparent objects using GLTFIO_LITE macro, i.e. using gltfresources_lite.bin. If not change this macro, the transparent objects will be rended using LIT_OPAQUE material instead of LIT_FADE material.
2022-01-11 10:31:49 -08:00
Jared Fowler
b67963176b
Moving UiHelper to the constructor which allows for more composable control of the underlying views & surface
2022-01-11 08:56:42 -08:00
Ankbzpx
fb1eb35ba5
Fix aabb misalignment for skinned gltf model ( #4973 )
2022-01-10 15:06:23 -08:00
Mathias Agopian
047543a4a6
make our ostream thread safe
...
ostream internals are now protected by a lock, which ensures the
internal state stays consistant, however, this won't prevent
multiple threads to have their output ominterfering with each other,
which is no different from the stl behavior.
This fixes #4992
2022-01-10 15:04:26 -08:00
Mathias Agopian
5e0615040d
refactor our ostream
...
The main change here is that we factorize all the interesting code in
a single function. This should result in smaller code.
2022-01-10 15:04:26 -08:00
Mathias Agopian
1ceed1519b
attempt to fix compilation failure with gcc
...
fix #4990
2022-01-10 15:04:09 -08:00
Benjamin Doherty
a1a3adf8af
Release Filament 1.16.0
2022-01-10 10:43:35 -08:00
Ben Doherty
620a693c11
FilamentApp: use PrtScn key to capture debug frame ( #5032 )
2022-01-10 10:28:34 -08:00
jeanlemotan
4511af6f9e
Removed code duplication, better style.
2022-01-08 06:17:56 -08:00
jeanlemotan
214e54f2ad
Make sure the width/height don't reach zero.
2022-01-08 06:17:56 -08:00
jeanlemotan
2eefbe11ae
Fixed cubemap update
2022-01-08 06:17:56 -08:00
Mathias Agopian
74ea3d50c2
Make sure to object are aligned properly when allocated in the renderstream
...
fix #4991
2022-01-07 10:49:12 -08:00
jeanlemotan
9a8159ab04
Fixed compiler warning (int -> float conversion)
2022-01-07 10:17:04 -08:00
Ben Doherty
2f3aac29da
Enable GL_ARB_shading_language_packing in vertex shaders ( #5022 )
2022-01-06 13:17:31 -08:00
jeanlemotan
9d7f5f593e
Added line/triangle strip support ( #5017 )
...
* Added line/triangle strip support
* Added strip support for Java and JS
Changed README to indicate strip support for gltf
2022-01-06 13:07:32 -08:00
Ben Doherty
2596273a94
Avoid calling std::string(nullptr) in MockConfig.cpp ( #5019 )
2022-01-06 10:52:01 -08:00
Benjamin Doherty
210a8c2260
Update Renderer comment
2022-01-06 10:47:54 -08:00
Benjamin Doherty
eaefaf8e59
Release Filament 1.15.2
2022-01-04 11:52:31 -08:00
Ben Doherty
7873e6f5aa
Metal: clamp readPixels width and height to texture dimensions ( #4994 )
2021-12-28 10:27:11 -07:00
abwood
251abf0545
Add support for the glTF extension KHR_materials_emissive_strength ( #4975 )
2021-12-23 01:32:45 -08:00
Mathias Agopian
b5c4b30ff6
Fix a double release with Android bitmaps callbacks
...
The version of Texture::setBitmap() that tool an Android bitmap handled
callbacks differently and in certain case caused a "double release" of
the callback object. This didn't actually cause problems though.
We now use the same mechanism used elsewhere (i.e. JniCallback).
2021-12-15 09:18:23 -08:00
Mathias Agopian
eb941a0868
Make normal skinning more efficient
...
With this change the cofactor matrix is partially precomputed on the
CPU side.
2021-12-14 10:00:10 -08:00
Mathias Agopian
304ffe0049
Fix skinning calculations
...
it was incorrect to store bone matrices as quaternions because it is
allowed for these matrices to have a skew component.
We now store the 4x4 matrix -- which is the same amount of data as
before, however we compute the cofactor matrix in the vertex shader when
transforming normals.
fixes #4887
2021-12-14 10:00:10 -08:00
Mathias Agopian
88edbc7df8
Fix a java global reference leak
...
We were acquiring a reference twice by accident.
Fix #4957
2021-12-13 15:16:48 -08:00
Mathias Agopian
6fa82ea73d
Fix typo when setting cubemap faces mip levels.
2021-12-13 15:16:33 -08:00
Mathias Agopian
92e7ff3de7
fix debug checks for compressed textures
...
Fixes #4941
2021-12-13 15:16:33 -08:00
Romain Guy
2739eb146a
Fix rounding math
2021-12-13 10:54:31 -08:00
Romain Guy
59ccc3021f
Add missing JNI impl ( #4959 )
2021-12-13 10:52:47 -08:00
Romain Guy
36e9fa42f4
Fix preprocessor test
2021-12-13 10:42:07 -08:00
Benjamin Doherty
8111c50a5a
Release Filament 1.15.1
2021-12-13 11:06:12 -07:00
Romain Guy
0e5e7e940c
Fix typo in JNI binding
2021-12-10 08:35:16 -08:00
Ben Doherty
9f75d34bb8
Rework color history in preparation for SSR ( #4932 )
2021-12-08 13:35:54 -08:00
Mathias Agopian
df42213daf
update remote ui
2021-12-08 00:25:25 -06:00
Mathias Agopian
b73caceb1f
fix libibl on mobile
...
- the hammersley sequence was completely wrong because of a missing
highp precision qualifier
- roughness 0 was also wrong because of divide-by-0
Fixes #4668
2021-12-08 00:17:29 -06:00
Mathias Agopian
c91f28b6be
fix remote UI when dropping a new .hdr ibl file
...
- the ibl wasn't updated in internal structures
- the previous ibl was leaked
2021-12-08 00:17:29 -06:00
Mathias Agopian
078de4e422
Add support for basic PCSS
2021-12-08 00:17:12 -06:00
Romain Guy
332d5681e6
Update dependencies
2021-12-07 09:34:28 -08:00