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:
parent
836c563c89
commit
076bde34a2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user