Need help in graphics pipeline setup. #464
Unanswered
nikitablack
asked this question in
Q&A
Replies: 1 comment 1 reply
-
You should verify that both the texture sampler and the framebuffer are sRGB/gamma-aware. If so, you can then copy the shaders from https://github.com/emilk/egui/blob/master/egui_glium/src/shader/vertex_140.glsl and https://github.com/emilk/egui/blob/master/egui_glium/src/shader/fragment_140.glsl If not, follow the shaders at https://github.com/emilk/egui/blob/master/egui_web/src/shader/vertex_100es.glsl and https://github.com/emilk/egui/blob/master/egui_web/src/shader/fragment_100es.glsl It is probably worth reading up a bit about gamma/sRGB encoded colors if you want to understand what you're doing :) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello. I'm trying to use
egui
with Vulkan. I was able to upload geometry and font texture to the GPU but I can't make the scene look good. At first, I thought it was an issue with the texture but @emilk explained that it's not when I submitted an issue. Nevertheless, I have the following image:There's no horizontal line under the header and no resize handle in the bottom right corner. I pass vertices as is without any modification. I'm using the shader code from the
glium
implementation:But if I treat the vertex color as linear, i.e.:
Then I get the following image:
which looks ok to me but I have a feeling that it's wrong. Also, the shadows on both images are looking weird.
I tried to follow the recommendations and used the required sampler filter and address modes, blend factors. The font texture has
R8G8B8A8_SRGB
format.I would be happy to hear ideas of what I could forget.
Beta Was this translation helpful? Give feedback.
All reactions