摘要: ww=createFile "c:\\b.txt"--ww = openFile "c:\\b.txt"format ("meshname:"+$.name) to:wwformat "\n" to:wwformat ("materialname:"+$.material.name) to:wwformat "\n" to:wwformat "shader:Bumped Diffuse" to:wwformat "\n" to:wwformat ("diffuseMapname:"+filenameFromPath($.material.diffusemap.filename)) to:wwf 阅读全文
posted @ 2010-12-31 17:49 softimagewht 阅读(594) 评论(0) 推荐(0)
摘要: var bumpMap:Object[];function Start(){var namett:String="4";//贴图名,以后直接读取文本bumpMap= Resources.LoadAll("Textrue", Texture2D);//载入resources所有的贴图为数组for(var tx:Texture2D in bumpMap){ var shade01:Shader=Shader.Find("Bumped Diffuse"); gameObject.renderer.material.shader=shade01; print(tx.name); if(tx.name 阅读全文
posted @ 2010-12-31 17:15 softimagewht 阅读(324) 评论(0) 推荐(0)