Christoffer Enedahl wrote:Hi. Nope, you can´t mix them in the shader. Actually, I´ve never done> I want to know if it's possible to mix textures in the shader or do I have
> to prerender a texture with copyPixels, the result I'm looking for is
> transitions between two diffrent textures, such as gravelroad to tarmac.
> What way would be most efficient?
this myself for getting such effect. But my guess is that changing the
image property of the texture would be the nicier way.
Otherwise, you´d have to create newTextures or change it´s member
property... and that would be slower for sure as you´d have to set your
member´s image first and then change the texture´s member property.
on init me
textureRef = member("3D").texture("map #3")
on updateTexture me
someProcessedImage = copyPixels(..........)
textureRef.image = someProcessedImage
Agustín María Rodríguez | [email]agustinOnWine.com.ar[/email] | [url]www.OnWine.com.ar[/url]