Skip to content

Commit

Permalink
fix invisible water if no texture pack is specified
Browse files Browse the repository at this point in the history
  • Loading branch information
jebbyk committed Nov 17, 2021
1 parent 4f87898 commit d121ea1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions shaders/glsl/renderchunk.fragment
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,13 @@ void main()

#else
#if defined(WATER_DETAILS_ENABLED) & defined(BLEND)
vec3 normalVector;
if(isWater > 0.9){
vec3 normalVector = rotateNormals(geometryNormal, reliefMap);
normalVector = rotateNormals(geometryNormal, reliefMap);
///true TBN transformation is disabled for now because of performance
// vec3 normalVector = rotateNormals(TBN, reliefMap);
} else {
vec3 normalVector = geometryNormal;
normalVector = geometryNormal;
}
#else
vec3 normalVector = geometryNormal;
Expand Down

0 comments on commit d121ea1

Please sign in to comment.