-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add "enable_fxaa" in rendering.global.json to enable/disable fxaa pass #218
Conversation
engine/source/runtime/resource/res_type/global/global_rendering.h
Outdated
Show resolved
Hide resolved
@@ -192,8 +194,8 @@ namespace Pilot | |||
fxaa_pass.updateAfterFramebufferRecreate( | |||
main_camera_pass.getFramebufferImageViews()[_main_camera_pass_post_process_buffer_odd]); | |||
combine_ui_pass.updateAfterFramebufferRecreate( | |||
main_camera_pass.getFramebufferImageViews()[_main_camera_pass_backup_buffer_even], | |||
main_camera_pass.getFramebufferImageViews()[_main_camera_pass_backup_buffer_odd]); | |||
main_camera_pass.getFramebufferImageViews()[_main_camera_pass_backup_buffer_odd], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why change the order?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the _main_camera_pass_backup_buffer_odd
VkImageView is used as the scene_input_attachment
now no matter enable or disable FXAA pass. and the _main_camera_pass_backup_buffer_even
is used as the ui_input_attachment
. it doesn't make any difference if not changed the order. for easy understanding, i think the parameter should follow the definition void CombineUIPass::updateAfterFramebufferRecreate(VkImageView scene_input_attachment, VkImageView ui_input_attachment)
.
@@ -27,6 +27,9 @@ namespace Pilot | |||
{ | |||
RenderPass::initialize(nullptr); | |||
|
|||
const MainCameraPassInitInfo* _init_info = static_cast<const MainCameraPassInitInfo*>(init_info); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
local variable naming should be const MainCameraPassInitInfo* init_info
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the init_info
has been used in const RenderPassInitInfo* init_info
as the parameter of initialize
function. i referenced the initialize
function of ColorGradingPass
which used this naming style.
@hyv1001 please check and assess if these changes should be accepted |
No description provided.