- Home /
Apply transparent texture to plain at runtime
I have an this model, it's my character, it have only cubes, and, I need to dinamically texture these cubes with it cloth, so, I've placed planes attached to it's body, and then I change the planes texture dinamically from code to change it's accessories, but, the question is, is there a better mode to do this, and, how to apply transparent textures, textures with transparent background?
With cloth, I mean my "cloth" textures, that will be attached to the planes in front and back and sides of the model torso and foots.
And, the model was made in SketchUp, edited and rigged in Blender (actually, it's a voxel based game, so, that's how my character needs to be).
Answer by hvilela · Oct 07, 2012 at 02:20 PM
Use a transparent shader.
renderer.material.shader = Shader.Find ("Transparent/Diffuse");
It will make the plane parts without texture, invisible?