google / filament

Filament is a real-time physically based rendering engine for Android, iOS, Windows, Linux, macOS, and WebGL2
https://google.github.io/filament/
Apache License 2.0
17.37k stars 1.84k forks source link

Filament rendering is inconsistent with OpenGL #7742

Closed wddl closed 3 months ago

wddl commented 3 months ago

Describe the bug As shown in the images below, the first image is rendered using OpenGL, while the second image is rendered using Filament. There are some differences between the two results. However, the shader code inputs are completely identical. The code is also provided below. May I ask why this is the case? opengl-render filament-render filament-code.txt opengl-code.txt

To Reproduce

Expected behavior The rendering is consistent with OpenGL

Screenshots

Logs

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context

romainguy commented 3 months ago

Filament has post processing my default, including color grading. Filament will also work in linear sRGB which you may or may not be doing.