Implemented the new g3d spec

This commit is contained in:
mathusummut
2018-06-28 21:36:10 +02:00
parent 90556c870e
commit b1760253fd
24 changed files with 225 additions and 338 deletions

View File

@@ -723,7 +723,7 @@ namespace Shared {
float numUsedToSmooth = 0.f;
for (int k = -1; k <= 1; ++k) {
for (int l = -1; l <= 1; ++l) {
int tmpHeight = oldHeights[(j + k) * w + (i + l)];
int tmpHeight = (int) oldHeights[(j + k) * w + (i + l)];
if (limitHeight && tmpHeight > 20) {
tmpHeight = 20;
}