Why am I doing this?

This commit is contained in:
korenkonder
2023-12-25 12:46:14 +03:00
parent b65fb727cd
commit 497375d480
3 changed files with 18 additions and 12 deletions
+11 -5
View File
@@ -1555,13 +1555,19 @@ namespace rndr {
}
if (npr_param == 1) {
/*gl_state_active_bind_texture_2d(16, sss_contour_texture->GetColorTex());
gl_state_bind_sampler(16, rctx->render_samplers[1]);
gl_state_active_bind_texture_2d(17, sss_contour_texture->GetDepthTex());
gl_state_bind_sampler(17, rctx->render_samplers[1]);*/
gl_state_active_bind_texture_2d(14, rend_texture[0].GetDepthTex());
gl_state_bind_sampler(14, rctx->render_samplers[1]);
/*gl_state_active_bind_texture_2d(16, sss_contour_texture->GetColorTex());
gl_state_active_bind_texture_2d(17, sss_contour_texture->GetDepthTex());*/
}
else {
gl_state_active_bind_texture_2d(14, rctx_ptr->empty_texture_2d);
/*gl_state_active_bind_texture_2d(16, rctx_ptr->empty_texture_2d);
gl_state_active_bind_texture_2d(17, srctx_ptr->empty_texture_2d);*/
}
gl_state_bind_sampler(14, rctx->render_samplers[1]);
/*gl_state_bind_sampler(16, rctx->render_samplers[1]);
gl_state_bind_sampler(17, rctx->render_samplers[1]);*/
rctx->tone_map_ubo.WriteMemory(shader_data);