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.
23 lines
587 B
GLSL
23 lines
587 B
GLSL
//! type chunk
|
|
|
|
|
|
//#define DOF_USE_RANDOM
|
|
|
|
layout( location = 0 ) uniform sampler2D u_Input;
|
|
layout( location = 1 ) uniform sampler2D u_Depth;
|
|
layout( location = 2 ) uniform vec4 u_Parameters;
|
|
layout( location = 3 ) uniform float u_Samples;
|
|
layout( location = 4 ) uniform vec3 u_ResolutionTime;
|
|
|
|
#define uSharpDist (u_Parameters.x)
|
|
#define uSharpRange (u_Parameters.y)
|
|
#define uBlurFalloff (u_Parameters.z)
|
|
#define uMaxBlur (u_Parameters.w)
|
|
|
|
#define uResolution (u_ResolutionTime.xy)
|
|
#define uTime (u_ResolutionTime.z)
|
|
|
|
layout( location = 0 ) out vec3 o_Color;
|
|
|
|
|
|
//!include dof-lib.glsl
|