コード例 #1
0
        public override void LoadContent()
        {
            CustomEffect = GameUtilities.Content.Load <Effect>("effects/DirectionalLight");

            Texture2D tex = GameUtilities.Content.Load <Texture2D>("Textures/act");

            //Texture2D overlay = GameUtilities.Content.Load<Texture2D>("Textures/furtext");
            Material = new DirectionalLightMaterial()
            {
                Texture = tex
            };

            base.LoadContent();
        }
コード例 #2
0
        public override void LoadContent()
        {
            CustomEffect = GameUtilities.Content.Load <Effect>("effects/NormalPointLight");

            Texture2D tex     = GameUtilities.Content.Load <Texture2D>("Textures/woodtexture");
            Texture2D overlay = GameUtilities.Content.Load <Texture2D>("Textures/Woodnormal");

            Material = new DirectionalLightMaterial()
            {
                Texture = tex, NoramlTexture = overlay
            };

            base.LoadContent();
        }