medfall

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit ab6c98400312486a653c2700da10c2a0437cd4da
parent 203c3a1fdf83a066391c7047186ff4a4e1c863d3
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Sun Nov 13 22:18:03 +0200

More warnings

Diffstat:
pp.cc | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pp.cc b/pp.cc @@ -74,8 +74,8 @@ static void compute_normals( const array2d< u8 > heightmap, array2d< v3 > normal if( y == 0 ) y_minus_one = y; if( y == heightmap.h - 1 ) y_plus_one = y; - v3 tangent( checked_cast< float >( x_plus_one - x_minus_one ), 0, heightmap( x_plus_one, y ) - heightmap( x_minus_one, y ) ); - v3 bitangent( 0, checked_cast< float >( y_plus_one - y_minus_one ), heightmap( x, y_plus_one ) - heightmap( x, y_minus_one ) ); + v3 tangent( checked_cast< float >( x_plus_one - x_minus_one ), 0.0f, heightmap( x_plus_one, y ) - heightmap( x_minus_one, y ) ); + v3 bitangent( 0.0f, checked_cast< float >( y_plus_one - y_minus_one ), heightmap( x, y_plus_one ) - heightmap( x, y_minus_one ) ); normals( x, y ) = normalize( cross( tangent, bitangent ) ); }