Shader cleanup
This commit is contained in:
parent
a1532d5bec
commit
91cb952fd8
|
@ -1,9 +1,5 @@
|
|||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
#endif
|
||||
|
||||
#include "compiled.glsl"
|
||||
|
||||
uniform sampler2D tex;
|
||||
|
|
|
@ -1,10 +1,6 @@
|
|||
// Exclusive to SSR for now
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
#endif
|
||||
|
||||
#include "compiled.glsl"
|
||||
#include "std/gbuffer.glsl"
|
||||
|
||||
|
|
|
@ -1,10 +1,6 @@
|
|||
// Exclusive to SSAO for now
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
#endif
|
||||
|
||||
#include "compiled.glsl"
|
||||
#include "std/gbuffer.glsl"
|
||||
|
||||
|
|
|
@ -1,10 +1,6 @@
|
|||
// Exclusive to bloom for now
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
#endif
|
||||
|
||||
#include "compiled.glsl"
|
||||
|
||||
uniform sampler2D tex;
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
#endif
|
||||
|
||||
uniform sampler2D tex;
|
||||
|
||||
uniform vec2 dirInv;
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
#endif
|
||||
|
||||
uniform sampler2D tex;
|
||||
uniform sampler2D tex2;
|
||||
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
#endif
|
||||
|
||||
#include "compiled.glsl"
|
||||
#include "std/tonemap.glsl"
|
||||
#include "std/math.glsl"
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
#endif
|
||||
|
||||
// #ifdef _CPos
|
||||
// uniform mat4 invVP;
|
||||
// uniform vec3 eye;
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
#endif
|
||||
|
||||
in vec3 color;
|
||||
out vec4 fragColor;
|
||||
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
#endif
|
||||
|
||||
in vec3 pos;
|
||||
in vec3 col;
|
||||
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
#endif
|
||||
|
||||
in vec3 color;
|
||||
out vec4[2] fragColor;
|
||||
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
#endif
|
||||
|
||||
#include "compiled.glsl"
|
||||
#include "std/gbuffer.glsl"
|
||||
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
#endif
|
||||
|
||||
#include "compiled.glsl"
|
||||
|
||||
uniform sampler2D tex;
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
#endif
|
||||
|
||||
#include "compiled.glsl"
|
||||
#include "std/gbuffer.glsl"
|
||||
#include "std/math.glsl"
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
#endif
|
||||
|
||||
#ifdef _Rad
|
||||
uniform mat4 invVP;
|
||||
uniform vec3 eye;
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
#endif
|
||||
|
||||
#include "compiled.glsl"
|
||||
#include "std/brdf.glsl"
|
||||
#include "std/math.glsl"
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
#endif
|
||||
|
||||
#include "compiled.glsl"
|
||||
#include "std/brdf.glsl"
|
||||
#include "std/math.glsl"
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
#endif
|
||||
|
||||
uniform sampler2D tex;
|
||||
uniform vec2 screenSizeInv;
|
||||
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
#endif
|
||||
|
||||
in vec4 color;
|
||||
|
||||
out vec4 fragColor;
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
#endif
|
||||
|
||||
in vec3 pos;
|
||||
in vec4 col;
|
||||
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
#endif
|
||||
|
||||
in vec3 pos;
|
||||
in vec4 col;
|
||||
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
#endif
|
||||
|
||||
out vec4 fragColor;
|
||||
|
||||
void main() {
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
#endif
|
||||
|
||||
uniform mat4 LVWVP;
|
||||
|
||||
in vec3 pos;
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
#endif
|
||||
|
||||
uniform sampler2D tex;
|
||||
|
||||
in vec2 texCoord;
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
#endif
|
||||
|
||||
in vec2 pos;
|
||||
|
||||
out vec2 texCoord;
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
#endif
|
||||
|
||||
uniform mat4 invVP;
|
||||
uniform vec3 eye;
|
||||
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
#endif
|
||||
|
||||
uniform mat4 invP;
|
||||
|
||||
in vec2 pos;
|
||||
|
|
|
@ -1,10 +1,6 @@
|
|||
// Transfer material IDs to depth buffer
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
#endif
|
||||
|
||||
uniform sampler2D tex;
|
||||
|
||||
in vec2 texCoord;
|
||||
|
|
|
@ -2,10 +2,6 @@
|
|||
// http://http.developer.nvidia.com/GPUGems3/gpugems3_ch27.html
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
#endif
|
||||
|
||||
#include "compiled.glsl"
|
||||
#include "std/gbuffer.glsl"
|
||||
|
||||
|
|
|
@ -2,10 +2,6 @@
|
|||
// http://john-chapman-graphics.blogspot.com/2013/01/per-object-motion-blur.html
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
#endif
|
||||
|
||||
#include "compiled.glsl"
|
||||
|
||||
uniform sampler2D gbuffer0;
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
#endif
|
||||
|
||||
#define SMAA_MAX_SEARCH_STEPS_DIAG 8
|
||||
#define SMAA_AREATEX_MAX_DISTANCE 16
|
||||
#define SMAA_AREATEX_MAX_DISTANCE_DIAG 20
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
#endif
|
||||
|
||||
in vec2 pos;
|
||||
|
||||
uniform vec2 screenSize;
|
||||
|
|
|
@ -41,10 +41,6 @@
|
|||
*/
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
#endif
|
||||
|
||||
#define SMAA_THRESHOLD 0.1
|
||||
#define SMAA_DEPTH_THRESHOLD (0.1 * SMAA_THRESHOLD) // For depth edge detection, depends on the depth range of the scene
|
||||
#define SMAA_LOCAL_CONTRAST_ADAPTATION_FACTOR 2.0
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
#endif
|
||||
|
||||
in vec2 pos;
|
||||
|
||||
uniform vec2 screenSizeInv;
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
#endif
|
||||
|
||||
uniform sampler2D colorTex;
|
||||
uniform sampler2D blendTex;
|
||||
#ifdef _Veloc
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
#endif
|
||||
|
||||
in vec2 pos;
|
||||
|
||||
uniform vec2 screenSizeInv;
|
||||
|
|
|
@ -13,10 +13,6 @@
|
|||
// }
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
#endif
|
||||
|
||||
#include "compiled.glsl"
|
||||
#include "std/gbuffer.glsl"
|
||||
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
#endif
|
||||
|
||||
#include "compiled.glsl"
|
||||
#include "std/gbuffer.glsl"
|
||||
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
#endif
|
||||
|
||||
#include "compiled.glsl"
|
||||
#include "std/math.glsl"
|
||||
#include "std/gbuffer.glsl"
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
#endif
|
||||
|
||||
#include "compiled.glsl"
|
||||
#include "std/math.glsl"
|
||||
#include "std/gbuffer.glsl"
|
||||
|
|
|
@ -35,10 +35,6 @@
|
|||
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
#endif
|
||||
|
||||
#include "compiled.glsl"
|
||||
|
||||
uniform sampler2D gbufferD;
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
#endif
|
||||
|
||||
#include "std/filters.glsl"
|
||||
|
||||
uniform sampler2D tex;
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
#endif
|
||||
|
||||
uniform sampler2D tex;
|
||||
uniform sampler2D tex2;
|
||||
#ifdef _Veloc
|
||||
|
|
|
@ -1,10 +1,6 @@
|
|||
// Weighted blended OIT by McGuire and Bavoil
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
#endif
|
||||
|
||||
uniform sampler2D gbufferD;
|
||||
uniform sampler2D gbuffer0; // saccum
|
||||
uniform sampler2D gbuffer1; // srevealage
|
||||
|
|
|
@ -1,10 +1,6 @@
|
|||
// http://sebastien.hillaire.free.fr/index.php?option=com_content&view=article&id=72&Itemid=106
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
#endif
|
||||
|
||||
#include "compiled.glsl"
|
||||
#include "std/gbuffer.glsl"
|
||||
#include "std/shadows.glsl"
|
||||
|
|
|
@ -1,10 +1,6 @@
|
|||
// http://sebastien.hillaire.free.fr/index.php?option=com_content&view=article&id=72&Itemid=106
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
#endif
|
||||
|
||||
#include "compiled.glsl"
|
||||
#include "std/gbuffer.glsl"
|
||||
#include "std/shadows.glsl"
|
||||
|
|
|
@ -4,10 +4,6 @@
|
|||
// Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
#endif
|
||||
|
||||
#include "compiled.glsl"
|
||||
#include "std/gbuffer.glsl"
|
||||
// #include "std/math.glsl"
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
#endif
|
||||
|
||||
uniform mat4 transpV;
|
||||
uniform mat4 invP;
|
||||
uniform mat4 invVP;
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
#endif
|
||||
|
||||
#include "compiled.glsl"
|
||||
#ifdef _EnvTex
|
||||
#include "std/math.glsl"
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
#endif
|
||||
|
||||
in vec3 pos;
|
||||
in vec3 nor;
|
||||
|
||||
|
|
Loading…
Reference in a new issue