private BloomEffect bloomEffect; //BloomEffect /// <summary> /// Effectを管理するクラス /// </summary> /// <param name="graphicsDevice">グラフィック機器</param> /// <param name="contents">コンテントマネージャー</param> public EffectManager(GraphicsDevice graphicsDevice, ContentManager contents) { this.graphicsDevice = graphicsDevice; basicEffect = new BasicEffect(graphicsDevice); miniMapEffect = new BasicEffect(graphicsDevice); basicEffect.VertexColorEnabled = true; //頂点色を有効 miniMapEffect.VertexColorEnabled = true; //頂点色を有効 currentEffect = basicEffect; blurEffect = new BlurEffect( //BlurEffectをShaderから読み取って生成する graphicsDevice, contents.Load <Effect>("./Effect/blur")); blurEffect.Initialize(); //初期化 polygonEffect = new PolygonEffect( contents.Load <Effect>("./Effect/polygon")); depthEffect = new DepthEffect( graphicsDevice, contents.Load <Effect>("./Effect/depth")); bloomEffect = new BloomEffect( graphicsDevice, contents.Load <Effect>("./Effect/hightLight"), contents.Load <Effect>("./Effect/bloom"), new BlurEffect( graphicsDevice, contents.Load <Effect>("./Effect/blur"))); }