-
-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect colors in ViewRenderable #60
Comments
Hi @grassydragon, You are totally right about it. But it would be very helpful for anyone using Sceneform if you could ask the Filament team about the reason why Thanks a lot for your great report ! |
As I understand the |
Hello, @ThomasGorisse!
When using the colors with the full pixel intensity, for example, the red
#ff0000
, green#00ff00
and blue#0000ff
colors, they are displayed incorrectly on aViewRenderable
. This can be tested by changing the label background color here:https://github.com/ThomasGorisse/sceneform-android-sdk/blob/master/samples/gltf/src/main/res/drawable/rounded_bg.xml#L18
I think that this is caused by the
inverseTonemapSRGB
function here:https://github.com/ThomasGorisse/sceneform-android-sdk/blob/master/core/assets-sources/materials/sceneform_view_material.mat#L41
Should I ask about that in the Filament repository since I get the same results in the
hello-triangle
example?The text was updated successfully, but these errors were encountered: