I’ve been looking over the documentation for Texture blending, and I haven’t been able to figure out an apparently simple thing:
How can I take a model which has a texture A and smoothly transition to a texture B?
I thought that this code would do it:
self.desk.setTexture(self.texture_A,1)
self.ts = TextureStage(‘ts’)
self.ts.setMode(TextureStage.MCombine)
self.ts.setColor(Vec4(1, 1, 1, FACTOR))
self.desk.setTexture(self.ts, self.texture_A)
Where I make “FACTOR” go from 0 to 1 slowly.
But it doesn’t do what I expected. Am I getting something wrong?
thanks in advance!!