Fix: calculating localTranslation after gridChange

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7756 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
ant..om 14 years ago
parent ab9a2635a2
commit 0604418b3c
  1. 2
      engine/src/terrain/Common/MatDefs/Terrain/HeightBasedTerrain.frag

@ -25,7 +25,7 @@ vec4 GenerateTerrainColor() {
float b = (blend.x + blend.y + blend.z); float b = (blend.x + blend.y + blend.z);
blend /= vec3(b, b, b); blend /= vec3(b, b, b);
vec4 terrainColor = vec4(0, 0, 0, 1.0); vec4 terrainColor = vec4(0.0, 0.0, 0.0, 1.0);
float m_regionMin = 0.0; float m_regionMin = 0.0;
float m_regionMax = 0.0; float m_regionMax = 0.0;

Loading…
Cancel
Save