filament icon indicating copy to clipboard operation
filament copied to clipboard

turn FILAMENT_DISABLE_MATOPT off cause SSR's rendering result error

Open hammerLWA opened this issue 2 years ago • 3 comments

when i turn FILAMENT_DISABLE_MATOPT off in cmakelist, i got a error rendering with screen space reflection which is right when i open FILAMENT_DISABLE_MATOPT.

FILAMENT_DISABLE_MATOPT off: 1651917717834_CC62ABE8-E838-4d75-9A21-2B85E15F46D2

1651917711364_04C11975-2878-47c8-B648-BCC096A87C38

FILAMENT_DISABLE_MATOPT on: 1651914957838_E7595B0E-D30F-45b3-A312-09618590E295 1651914966236_663BE91A-E48F-4f7c-9CD5-9E70F42A5A0B

hammerLWA avatar May 07 '22 10:05 hammerLWA

Which backend (OpenGL, Metal, Vulkan) / platform (macOS, Windows, etc) are you using?

bejado avatar May 09 '22 20:05 bejado

Which backend (OpenGL, Metal, Vulkan) / platform (macOS, Windows, etc) are you using?

OpenGL with Nvidia GTX 2060, i found it is a similar case as issue, scaleMatrix in light_reflections.fs cause a bad optimization by SPIR-V tool.

highp mat4 uvFromViewMatrix = scaleMatrix(res.x, res.y) * frameUniforms.ssrUvFromViewMatrix;

hammerLWA avatar May 10 '22 01:05 hammerLWA

Isn't this also similar to this issue ?

teub avatar Jun 21 '22 19:06 teub

I'm going to assume this is fixed because the spirv matrix assignment issue has been fixed.

pixelflinger avatar Mar 31 '23 22:03 pixelflinger