I’m trying to transform one texture to another.
Algorithm is simple:
a).calculating color difference of pixels between these two textures
b). adding/subtracting the certain value to color value in first texture to get necessary color value (like in second texture)
c). if adding/subtracting value is small, then it possible to get fluent transformation from one texture to another (because shedders ere executing 60 times per 1 second it means that if adding/subtracting value is in sixty(for example) once smaller then difference, then transformation time will be exactly 1 second)
But it’s theory.
In practice I have something strange.
And I hope it’s just my mistakes.
When I’m trying to transform one texture to another (pic1 to pic2) I’m getting next result (pic3)
And even when I’m trying to transform one texture to itself (in theory nothing should happen) I’m getting the same strange result (pic4).
Where is the problem?
PS All files are in textotex.zip.
textotex.rar (15.9 kB)