Hello. How i can use Opacity map in Away3D 4???
TextureMaterial can work with transparent png, but i have two images for texture. One it’s defuse jpg texture and sedond it b/w jpg opacity map.
Opacity map in Away3D 4Software: Away3D 4.x |
||
dhunter, Newbie
Posted: 22 June 2012 07:37 PM Total Posts: 1 |
||
Richard Olsson, Administrator
Posted: 22 June 2012 08:35 PM Total Posts: 1192 [ # 1 ] You can use a shading method called AlphaMaskMethod, but you’re probably better off just copying the alpha channel of your opacity map to the alpha channel of your texture BitmapData. That way you don’t have to use up two textures on the GPU. Have a look at the BitmapData.copyChannel() method. |