You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and looks like webgl2 in this case interprets color as sRGB, and bevy as linearRGB
using same code in both (left is web):
but if in native version I convert color from sRGB to linear first, then result color will be the same
let color = Color::rgb(0.7,0.2,0.2).as_linear_rgba_f32();
mesh.set_attribute(Mesh::ATTRIBUTE_COLOR,vec![[color[0], color[1], color[2]]; buffers.vertices.len()],);
The text was updated successfully, but these errors were encountered:
I've tried to render simple mesh with vertex colors:
and looks like webgl2 in this case interprets color as sRGB, and bevy as linearRGB
using same code in both (left is web):
but if in native version I convert color from sRGB to linear first, then result color will be the same
The text was updated successfully, but these errors were encountered: