Subversion Repository Public Repository

Divide-Framework

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

Diff Revisions 886 vs 887 for /trunk/assets/shaders/GLSL/fragmentAtoms/terrainSplatting.frag

Diff revisions: vs.
  @@ -80,6 +80,9 @@
80 80 }
81 81
82 82 vec3 getTerrainNormal() {
83 +
84 +
85 +
83 86 vec3 tbn = vec3(0.0);
84 87 vec3 tbnTemp;
85 88 for (uint i = 0; i < MAX_TEXTURE_LAYERS; i++) {
  @@ -93,7 +96,8 @@
93 96 #else//(CURRENT_TEXTURE_COUNT % 4) == 0
94 97 tbnTemp = getFinalTBN4(blendMap, 0, detailScale[i]);
95 98 #endif
96 - tbnTemp = getTBNMatrix() * normalize(2.0 * tbnTemp - 1.0);
99 + //tbnTemp = getTBNMatrix() * normalize(2.0 * tbnTemp - 1.0);
100 + tbnTemp = perturb_normal(tbnTemp, VAR._normalWV, VAR._vertexW.xyz - dvd_cameraPosition.xyz, VAR._texCoord);
97 101 tbn = normalUDNBlend(tbnTemp, tbn);
98 102 }
99 103