From 076bde34a2d30189de2244d2d6a6fbfef8b8c628 Mon Sep 17 00:00:00 2001 From: Christian Schmitt Date: Wed, 12 Sep 2012 12:26:01 +0200 Subject: [PATCH] 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! --- simgear/scene/material/mat.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);