Emmanuel BENOîT
68d01ca42e
Shaders are no longer found under /shaders in the project; they can be anywhere. In addition, paths for both (program) instructions in the script and include directives in shader source code are relative to the file which contains them.
13 lines
257 B
GLSL
13 lines
257 B
GLSL
#version 450 core
|
|
|
|
//! type fragment
|
|
//! include dof.glsl
|
|
|
|
void main()
|
|
{
|
|
vec2 uv = gl_FragCoord.xy / uResolution;
|
|
vec2 blurvec = vec2( 0 , 1 ) / uResolution;
|
|
|
|
float z = texture( u_Depth , uv ).x;
|
|
o_Color = DOF_Blur( z , DOF_CoC( z ) , uv , blurvec );
|
|
}
|