Added support for writing base layer 0 texture into texture layer 1 and above
to use as a background.
This commit is contained in:
@@ -474,8 +474,9 @@ void DataSet::SourceData::readImage(DestinationData& destination)
|
||||
float destWindowWidthRatio = (float)destWidth/(float)windowWidth;
|
||||
float destWindowHeightRatio = (float)destHeight/(float)windowHeight;
|
||||
const float resizeTolerance = 1.1;
|
||||
if (destWindowWidthRatio>resizeTolerance ||
|
||||
destWindowHeightRatio>resizeTolerance)
|
||||
|
||||
bool interpolateSourceImagery = true;
|
||||
if (interpolateSourceImagery && (destWindowWidthRatio>resizeTolerance || destWindowHeightRatio>resizeTolerance))
|
||||
{
|
||||
readWidth = windowWidth;
|
||||
readHeight = windowHeight;
|
||||
|
||||
Reference in New Issue
Block a user