Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 167 vs 168 for /trunk/assets/shaders/GLSL/SSAOPass1.glsl

Diff revisions: vs.
  @@ -3,7 +3,7 @@
3 3 out vec3 normals;
4 4 out float depth;
5 5
6 - uniform vec2 zPlanes;
6 + uniform vec2 dvd_zPlanes;
7 7
8 8 float LinearDepth(in float inDepth);
9 9
  @@ -16,9 +16,9 @@
16 16 }
17 17
18 18 float LinearDepth(in float inDepth){
19 - float dif = zPlanes.y - zPlanes.x;
20 - float A = -(zPlanes.y + zPlanes.x) / dif;
21 - float B = -2*zPlanes.y*zPlanes.x / dif;
19 + float dif = dvd_zPlanes.y - dvd_zPlanes.x;
20 + float A = -(dvd_zPlanes.y + dvd_zPlanes.x) / dif;
21 + float B = -2*dvd_zPlanes.y*dvd_zPlanes.x / dif;
22 22 float C = -(A*inDepth + B) / inDepth; // C in [-1, 1]
23 23 return 0.5 * C + 0.5; // in [0, 1]
24 24 }