Open GoogleCodeExporter opened 9 years ago
I had this problem too. The trick is, you have to pass the BitmapFileMaterial
into a
BitmapMaterial... For example:
var bitmapFM:BitmapFileMaterial = new BitmapFileMaterial("url.png");
var material:BitmapMaterial = new BitmapMaterial(bitmapFM.bitmap, false);
var shader:PhongShader = new PhongShader(light, 0xffffff, 0x000000, 0, null,
null);
var shadeMat:ShadedMaterial = new ShadedMaterial(material, shader, 0);
var sphereObj:Sphere = new Sphere(shadeMat, 300, 16, 16);
There is more detail on this here:
http://www.actionscript.org/forums/showthread.php3?t=172892
Original comment by wellpaid...@gmail.com
on 16 Jul 2009 at 3:35
Original issue reported on code.google.com by
PEZ...@gmail.com
on 18 Apr 2009 at 5:21