Kajetan Johannes Hammerle 3 years ago
parent
commit
ffd357e074
1 changed files with 0 additions and 6 deletions
  1. 0 6
      resources/fragment.fs

+ 0 - 6
resources/fragment.fs

@@ -19,12 +19,6 @@ out vec4 color;
 
 const vec3 light = vec3(-0.746, -0.373, -0.224);
 
-vec2 ParallaxMapping(vec2 texCoords, vec3 viewDir) { 
-    float height = texture(bumpSamp, texCoords, 0.0).r;    
-    vec2 p = viewDir.xy / viewDir.z * (height * heightScale);
-    return texCoords - p;    
-} 
-
 void main(void) {
     vec2 tex = varTextureG + vec2(0.0, height);
     vec2 eye = normalize(viewPos - varPositionG).xy * heightScale;