Closed tigrazone closed 1 year ago
It's in path_tracer_viewer_gen.frag i think:
// ...
if (uViewType == 0) {
vec4 color = imageLoad(uColor, ivec2(gl_FragCoord.xy));
oColor = vec4(pow(color.xyz, vec3(1.0 / 2.2)), 1.0);
} else if (uViewType == 1) {
// ...
Where is in code now convert of hdr accumulated image to show to screen - is it right it is path_tracer_viewer_main.frag? I want to add tone mapper and save to ldr - to png, jpg. In which source code I must add my code? dep/MyVK/src/imgui/ImGuiRenderer.cpp have encoded code. Can you show source of this encoded code?