private void populateMesh(MOM mom) { Mesh m = LibLSDUnity.CreateMeshesFromTMD(mom.TMD).First(); rotateUpright(m); _meshFilter.sharedMesh = m; }
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)); } }
/// <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); }
public TIXTexture2D(TIX tix) { Tix = tix; Texture = LibLSDUnity.GetTextureFromTIX(tix); }