private static BoneMotion GetBoneMotion(ByteReader io) { // ? var motion=new BoneMotion(); motion.BoneName=io.GetSJIS(15); motion.FrameNum=io.GetUInt(); motion.Position=io.GetVector3(); motion.Rotation=io.GetVector4(); var bezierParams=new byte[64]; io.GetBytes(ref bezierParams); return motion; }
private Material GetMaterial(ByteReader io) { var material=new Material(); material.Name=GetText(io); material.EnglishName=GetText(io); material.Diffuse=io.GetVector4(); material.Specular=io.GetVector3(); material.SpecularFactor=io.GetFloat(); material.Ambient=io.GetVector3(); material.Flag=io.GetByte(); material.EdgeColor=io.GetVector4(); material.EdgeSize=io.GetFloat(); material.TextureIndex=GetTextureIndex(io); material.SphereTextureIndex=GetTextureIndex(io); material.SphereMode=(SPHERE_MODE)io.GetByte(); material.UseSharedToon=io.GetByte()==0 ? false : true; material.ToonTextureIndex=GetTextureIndex(io); material.Memo=GetText(io); material.IndexCount=io.GetInt(); return material; }