DoF gets proper time value
(but it's fucking useless)
This commit is contained in:
parent
58e3c35ea4
commit
88f1ecfb5d
3 changed files with 11 additions and 4 deletions
2
demo.cc
2
demo.cc
|
@ -57,7 +57,7 @@ void T_Demo::render( )
|
||||||
playingPrevious = playing;
|
playingPrevious = playing;
|
||||||
|
|
||||||
raymarcher->render( );
|
raymarcher->render( );
|
||||||
dof->render( );
|
dof->render( position , sync );
|
||||||
bloom->render( );
|
bloom->render( );
|
||||||
combine->render( );
|
combine->render( );
|
||||||
fxaa->render( );
|
fxaa->render( );
|
||||||
|
|
6
dof.cc
6
dof.cc
|
@ -37,7 +37,9 @@ T_DoFPass::T_DoFPass(
|
||||||
"fullscreen.v.glsl" , "dof-pass2.f.glsl" });
|
"fullscreen.v.glsl" , "dof-pass2.f.glsl" });
|
||||||
}
|
}
|
||||||
|
|
||||||
void T_DoFPass::render( )
|
void T_DoFPass::render(
|
||||||
|
__rd__ const float position ,
|
||||||
|
__rd__ T_SyncData const& )
|
||||||
{
|
{
|
||||||
PSTART( );
|
PSTART( );
|
||||||
enum {
|
enum {
|
||||||
|
@ -77,7 +79,7 @@ void T_DoFPass::render( )
|
||||||
glProgramUniform3f( id , U_RES_TIME ,
|
glProgramUniform3f( id , U_RES_TIME ,
|
||||||
imageInput_.width( ) ,
|
imageInput_.width( ) ,
|
||||||
imageInput_.height( ) ,
|
imageInput_.height( ) ,
|
||||||
0 );
|
position );
|
||||||
|
|
||||||
tm.bind( 0 , txPass1_ , *tm.sampler( "linear-edge" ) );
|
tm.bind( 0 , txPass1_ , *tm.sampler( "linear-edge" ) );
|
||||||
|
|
||||||
|
|
7
dof.hh
7
dof.hh
|
@ -3,6 +3,9 @@
|
||||||
#include "shaders.hh"
|
#include "shaders.hh"
|
||||||
|
|
||||||
|
|
||||||
|
struct T_SyncData;
|
||||||
|
|
||||||
|
|
||||||
struct T_DoFPass
|
struct T_DoFPass
|
||||||
{
|
{
|
||||||
T_DoFPass( ) = delete;
|
T_DoFPass( ) = delete;
|
||||||
|
@ -12,7 +15,9 @@ struct T_DoFPass
|
||||||
T_DoFPass( __rw__ T_Texture& imageInput ,
|
T_DoFPass( __rw__ T_Texture& imageInput ,
|
||||||
__rw__ T_Texture& depthInput );
|
__rw__ T_Texture& depthInput );
|
||||||
|
|
||||||
void render( );
|
void render(
|
||||||
|
__rd__ const float position ,
|
||||||
|
__rd__ T_SyncData const& sync );
|
||||||
void makeUI( );
|
void makeUI( );
|
||||||
|
|
||||||
T_Texture& output( ) { return txOutput_; }
|
T_Texture& output( ) { return txOutput_; }
|
||||||
|
|
Loading…
Reference in a new issue