public void Awake() { shapeTextureStorage = new TextureStorage(); specialTextureStorage = new TextureStorage(); MaterialTextures = new MaterialMatcher <MaterialTextureSet>(); DefaultShapeTexIndex = shapeTextureStorage.AddTexture(CreateFlatTexture(new Color(1f, 0.5f, 1f, 0.5f))); defaultSpecialTexIndex = specialTextureStorage.AddTexture(Texture2D.blackTexture); }
public ContentLoader() { materialTextureStorage = new TextureStorage(); shapeTextureStorage = new TextureStorage(); specialTextureStorage = new TextureStorage(); materialColors = new MaterialMatcher <ColorContent>(); materialTextures = new MaterialMatcher <TextureContent>(); defaultMatTexIndex = materialTextureStorage.AddTexture(CreateFlatTexture(new Color(0.5f, 0.5f, 0.5f, 0))); defaultShapeTexIndex = shapeTextureStorage.AddTexture(CreateFlatTexture(new Color(1f, 0.5f, 1f, 0.5f))); defaultSpecialTexIndex = specialTextureStorage.AddTexture(Texture2D.blackTexture); }
public void Awake() { _routiner = this; shapeTextureStorage = new TextureStorage(); specialTextureStorage = new TextureStorage(); MaterialTextures = new MaterialMatcher <MaterialTextureSet>(); Debug.Log("Compiling material shape textures."); shapeTextureStorage.AddTextureArray(Resources.Load <Texture2DArray>("shapeTextures")); DefaultShapeTexIndex = shapeTextureStorage.AddTexture(CreateFlatTexture(new Color(1f, 0.5f, 1f, 0.5f))); defaultSpecialTexIndex = specialTextureStorage.AddTexture(Texture2D.blackTexture); }
public void Awake() { materialTextureStorage = new TextureStorage(); shapeTextureStorage = new TextureStorage(); specialTextureStorage = new TextureStorage(); materialColors = new MaterialMatcher<ColorContent>(); materialTextures = new MaterialMatcher<TextureContent>(); DefaultMatTexIndex = materialTextureStorage.AddTexture(CreateFlatTexture(new Color(0.5f, 0.5f, 0.5f, 0))); DefaultShapeTexIndex = shapeTextureStorage.AddTexture(CreateFlatTexture(new Color(1f, 0.5f, 1f, 0.5f))); defaultSpecialTexIndex = specialTextureStorage.AddTexture(Texture2D.blackTexture); }
public ContentLoader() { materialTextureStorage = new TextureStorage(); shapeTextureStorage = new TextureStorage(); materialColors = new MaterialMatcher<ColorContent>(); materialTextures = new MaterialMatcher<TextureContent>(); }