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!
This commit is contained in:
Christian Schmitt 2012-09-12 12:26:01 +02:00
parent 836c563c89
commit 076bde34a2

View 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);