]> git.mxchange.org Git - simgear.git/commitdiff
Scene: use better clipping mode for material textures.
authorChristian Schmitt <chris@ilovelinux.de>
Wed, 12 Sep 2012 10:26:01 +0000 (12:26 +0200)
committerChristian Schmitt <chris@ilovelinux.de>
Wed, 12 Sep 2012 10:26:01 +0000 (12:26 +0200)
This eliminates the black borders on runways between threshold and
designation textures and also between two designation numbers.

Thanks to Emilian for tracking this down!

simgear/scene/material/mat.cxx

index 51b2d2dbe12411b582807d8262f5b89f1502542f..7a38c8fbcc447d6f982a10e7736072c80030384c 100644 (file)
@@ -514,9 +514,9 @@ void SGMaterial::buildEffectProperties(const SGReaderWriterOptions* options)
             makeChild(texProp, "filter")
                 ->setStringValue(mipmap ? "linear-mipmap-linear" : "nearest");
             makeChild(texProp, "wrap-s")
-                ->setStringValue(wrapu ? "repeat" : "clamp");
+                ->setStringValue(wrapu ? "repeat" : "clamp-to-edge");
             makeChild(texProp, "wrap-t")
-                ->setStringValue(wrapv ? "repeat" : "clamp");
+                ->setStringValue(wrapv ? "repeat" : "clamp-to-edge");
         }
         makeChild(effectParamProp, "xsize")->setDoubleValue(xsize);
         makeChild(effectParamProp, "ysize")->setDoubleValue(ysize);