コード例 #1
0
 public MB_TexSet(MeshBakerMaterialTexture[] tss, Vector2 uvOffset, Vector2 uvScale)
 {
     ts         = tss;
     obUVoffset = uvOffset;
     obUVscale  = uvScale;
     allTexturesUseSameMatTiling = false;
     matsAndGOs      = new MatsAndGOs();
     matsAndGOs.mats = new List <MatAndTransformToMerged>();
     matsAndGOs.gos  = new List <GameObject>();
 }
コード例 #2
0
 public MB_TexSet(MeshBakerMaterialTexture[] tss, Vector2 uvOffset, Vector2 uvScale, MB_TextureTilingTreatment treatment)
 {
     ts = tss;
     tilingTreatment = treatment;
     obUVoffset = uvOffset;
     obUVscale = uvScale;
     allTexturesUseSameMatTiling = false;
     thisIsOnlyTexSetInAtlas = false;
     matsAndGOs = new MatsAndGOs();
     matsAndGOs.mats = new List<MatAndTransformToMerged>();
     matsAndGOs.gos = new List<GameObject>();
     pipelineVariation = new PipelineVariationSomeTexturesUseDifferentMatTiling(this);
 }