public Material(Resources.DefaultTextures defaultTextures) { // TODO: Don't store another reference. this.defaultTextures = defaultTextures; // Ensure the textures are never null, so we can modify their state later. col = defaultTextures.defaultBlack; col2 = defaultTextures.defaultBlack; proj = defaultTextures.defaultBlack; nor = defaultTextures.defaultNormal; inkNor = defaultTextures.defaultWhite; prm = defaultTextures.defaultPrm; emi = defaultTextures.defaultBlack; emi2 = defaultTextures.defaultBlack; bakeLit = defaultTextures.defaultBlack; gao = defaultTextures.defaultWhite; specularIbl = defaultTextures.blackCube; difCube = defaultTextures.defaultBlack; dif = defaultTextures.defaultBlack; }
public static void Initialize() { Instance = new DefaultTextures(); }