Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouhang95 committed Jun 19, 2024
1 parent db8d2bf commit 3a44082
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zenovis/xinxinoptix/optixPathTracer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3918,8 +3918,8 @@ void optixrender(int fbo, int samples, bool denoise, bool simpleRender) {

}
else {
zeno::create_directories_when_write_file(exr_path);
save_exr((float3 *)optixgetimg_extra("color", w, h).data(), w, h, exr_path);
std::string jpg_native_path = zeno::create_directories_when_write_file(path);
stbi_write_jpg(jpg_native_path.c_str(), w, h, 4, p, 100);
path = path.substr(0, path.size() - 4);
save_png_color(path + ".aov.diffuse.png", w, h, optixgetimg_extra("diffuse", w, h).data());
save_png_color(path + ".aov.specular.png", w, h, optixgetimg_extra("specular", w, h).data());
Expand Down

0 comments on commit 3a44082

Please sign in to comment.