浏览代码

Revert "Make the sea flat"

This reverts commit c97f482d763ddd46af47e313cf14fdd3e490d7d9.
DricomDragon 4 年之前
父节点
当前提交
5633ca9886
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      main.cpp

+ 2 - 2
main.cpp

@@ -84,10 +84,10 @@ int main()
 				world[j][i][t] = 0.0f;
 
 	// Basic water
-	const float waterLevel = 0.05f;
+	const float waterLevel = 1.0f;
 	for (int j(0); j < HEIGHT; j++)
 		for (int i(0); i < WIDTH; i++)
-			world[j][i][WATER] = waterLevel;
+			world[j][i][WATER] = waterLevel / (HEIGHT - j);
 
 	// Top mountain line
 	const float mountainLevel = 10.0f;