-
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
Changes from all commits
f3e783a
a059a1f
48667e2
715cd3a
1e1d4d9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,7 +51,9 @@ namespace Pilot | |
main_camera_pass->m_directional_light_shadow_color_image_view = | ||
std::static_pointer_cast<RenderPass>(m_directional_light_pass)->m_framebuffer.attachments[0].view; | ||
|
||
m_main_camera_pass->initialize(nullptr); | ||
MainCameraPassInitInfo main_camera_init_info; | ||
main_camera_init_info.enble_fxaa = init_info.enable_fxaa; | ||
m_main_camera_pass->initialize(&main_camera_init_info); | ||
|
||
std::vector<VkDescriptorSetLayout> descriptor_layouts = _main_camera_pass->getDescriptorSetLayouts(); | ||
std::static_pointer_cast<PointLightShadowPass>(m_point_light_shadow_pass) | ||
|
@@ -81,9 +83,9 @@ namespace Pilot | |
CombineUIPassInitInfo combine_ui_init_info; | ||
combine_ui_init_info.render_pass = _main_camera_pass->getRenderPass(); | ||
combine_ui_init_info.scene_input_attachment = | ||
_main_camera_pass->getFramebufferImageViews()[_main_camera_pass_backup_buffer_even]; | ||
combine_ui_init_info.ui_input_attachment = | ||
_main_camera_pass->getFramebufferImageViews()[_main_camera_pass_backup_buffer_odd]; | ||
combine_ui_init_info.ui_input_attachment = | ||
_main_camera_pass->getFramebufferImageViews()[_main_camera_pass_backup_buffer_even]; | ||
m_combine_ui_pass->initialize(&combine_ui_init_info); | ||
|
||
PickPassInitInfo pick_init_info; | ||
|
@@ -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 commentThe 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 commentThe reason will be displayed to describe this comment to others. Learn more. the |
||
main_camera_pass.getFramebufferImageViews()[_main_camera_pass_backup_buffer_even]); | ||
pick_pass.recreateFramebuffer(); | ||
} | ||
uint32_t RenderPipeline::getGuidOfPickedMesh(const Vector2& picked_uv) | ||
|
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 inconst RenderPassInitInfo* init_info
as the parameter ofinitialize
function. i referenced theinitialize
function ofColorGradingPass
which used this naming style.