예제 #1
0
        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;
        }
예제 #2
0
 public static void Initialize()
 {
     Instance = new DefaultTextures();
 }