Beispiel #1
0
        private Material GetEmissiveMaterial()
        {
            StandardMaterial mat = MaterialModule.CreateSniperBase().Clone();

            this.sniperTextures.Apply(mat);
            foreach (MaterialModifier mod in this.materialModifiers[SniperMaterial.Emissive])
            {
                mod(mat);
            }

            SniperMain.AddMaterial(mat, String.Format("{0} {1}", this.name, "Emissive"));
            return(mat.material);
        }
Beispiel #2
0
        private Material GetKnifeMaterial()
        {
            // FUTURE: Knife base material
            StandardMaterial mat = MaterialModule.CreateSniperBase().Clone();

            this.knifeTextures.Apply(mat);
            foreach (MaterialModifier mod in this.materialModifiers[SniperMaterial.Knife])
            {
                mod(mat);
            }

            SniperMain.AddMaterial(mat, String.Format("{0} {1}", this.name, "Knife"));
            return(mat.material);
        }