Depth of field UI
This commit is contained in:
parent
b2be3dcb8c
commit
601cf6cb34
1 changed files with 10 additions and 0 deletions
10
dof.cc
10
dof.cc
|
@ -78,4 +78,14 @@ void T_DoFPass::render( )
|
||||||
|
|
||||||
void T_DoFPass::makeUI( )
|
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 );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue