Moved test "demo" to separate directory
This commit is contained in:
parent
dcd149eee5
commit
64629560cc
21 changed files with 9 additions and 0 deletions
test/shaders/chunks
23
test/shaders/chunks/dof.glsl
Normal file
23
test/shaders/chunks/dof.glsl
Normal file
|
@ -0,0 +1,23 @@
|
|||
//! 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 lib/dof.glsl
|
2047
test/shaders/chunks/fxaa-3.11.glsl
Normal file
2047
test/shaders/chunks/fxaa-3.11.glsl
Normal file
File diff suppressed because it is too large
Load diff
16
test/shaders/chunks/raymarcher.glsl
Normal file
16
test/shaders/chunks/raymarcher.glsl
Normal file
|
@ -0,0 +1,16 @@
|
|||
//! type chunk
|
||||
|
||||
layout( location = 0 ) uniform float u_Time;
|
||||
layout( location = 1 ) uniform vec2 u_Resolution;
|
||||
layout( location = 2 ) uniform vec3 u_CamPos;
|
||||
layout( location = 3 ) uniform vec3 u_LookAt;
|
||||
layout( location = 4 ) uniform vec3 u_CamUp;
|
||||
layout( location = 5 ) uniform float u_NearPlane;
|
||||
layout( location = 6 ) uniform vec4 u_Render;
|
||||
layout( location = 7 ) uniform float u_FogAttenuation;
|
||||
layout( location = 8 ) uniform int u_Correction;
|
||||
|
||||
layout( location = 0 ) out vec3 o_Color;
|
||||
layout( location = 1 ) out float o_Z;
|
||||
|
||||
//! include lib/raymarching.glsl
|
Loading…
Add table
Add a link
Reference in a new issue