From: Christian Schmitt Date: Wed, 12 Sep 2012 10:26:01 +0000 (+0200) Subject: Scene: use better clipping mode for material textures. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=076bde34a2d30189de2244d2d6a6fbfef8b8c628;p=simgear.git Scene: use better clipping mode for material textures. 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! --- diff --git a/simgear/scene/material/mat.cxx b/simgear/scene/material/mat.cxx index 51b2d2db..7a38c8fb 100644 --- a/simgear/scene/material/mat.cxx +++ b/simgear/scene/material/mat.cxx @@ -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);