Depth of field UI

This commit is contained in:
Emmanuel BENOîT 2017-10-01 19:22:28 +02:00
parent b2be3dcb8c
commit 601cf6cb34

10
dof.cc
View file

@ -78,4 +78,14 @@ void T_DoFPass::render( )
void T_DoFPass::makeUI( )
{
if ( !ImGui::CollapsingHeader( "Depth of field" ) ) {
return;
}
ImGui::DragFloat( "Sharp distance" , filterParams_ , .25 , 0.25 , 1000 );
ImGui::DragFloat( "Sharp range" , &filterParams_[ 1 ] , .1 , 0.1 , 100 );
ImGui::DragFloat( "Blur falloff" , &filterParams_[ 2 ] , .5 , 0.5 , 1000 );
ImGui::DragFloat( "Max blur" , &filterParams_[ 3 ] , .1 , .1 , 100 );
ImGui::DragInt( "Samples" , &nSamples_ , .2 , 1 , 32 );
}