Example #1
0
        private void populateMesh(MOM mom)
        {
            Mesh m = LibLSDUnity.CreateMeshesFromTMD(mom.TMD).First();

            rotateUpright(m);
            _meshFilter.sharedMesh = m;
        }
Example #2
0
        public InteractiveObjectData(MOM mom, Material mat)
        {
            _mom = mom;

            ObjectTable = LibLSDUnity.CreateMeshesFromTMD(mom.TMD);

            Animations = new List <TODAnimation>();
            foreach (var anim in _mom.MOS.TODs)
            {
                Animations.Add(new TODAnimation(anim, ObjectTable, mat));
            }
        }
Example #3
0
 /// <summary>
 /// Load a TIX into the virtual VRAM. 'Paints' textures within the TIX file to the virtual VRAM.
 /// </summary>
 /// <param name="tix">The TIX file to load into VRAM.</param>
 public static void LoadVramTix(TIX tix)
 {
     VramTexture = LibLSDUnity.GetTextureFromTIX(tix);
     VramMaterial.SetTexture(_mainTex, VramTexture);
     VramAlphaBlendMaterial.SetTexture(_mainTex, VramTexture);
 }
Example #4
0
 public TIXTexture2D(TIX tix)
 {
     Tix     = tix;
     Texture = LibLSDUnity.GetTextureFromTIX(tix);
 }