PV3D: Bump map

[ 2009-08-16 14:06:16 | Author: liuhuan ]
Font Size: Large | Medium | Small
uploads/200908/21_170447_untitled5.jpg



var bmp:Bitmap=new Bitmap(new Skin1(640,480));
var bmpBump:Bitmap=new Bitmap(new Bump(640,480));
var bmpMaterial:BitmapMaterial=new BitmapMaterial(bmp.bitmapData,true);
var shader:Shader=new PhongShader(light,0xFFFFFF,0x333333,50,bmpBump.bitmapData);
var shadedMaterial:ShadedMaterial=new ShadedMaterial(bmpMaterial,shader);
sphere=new Sphere(shadedMaterial,150,20,20);
[Last Modified By liuhuan, at 2009-08-21 17:05:00]
Comments Feed Comments Feed: http://www.liuhuan.com/blog/feed.asp?q=comment&id=1009

There is no comment on this article.

You can't post comment on this article.