• R/O
  • SSH
  • HTTPS

mmdx: Commit


Commit MetaInfo

Revision31 (tree)
Zeit2010-03-07 13:06:10
Autorwilfrem

Log Message

カリングモードを設定するのを忘れてたので修正

Ändern Zusammenfassung

Diff

--- trunk/MikuMikuDanceXNA/Model/MMDModel.cs (revision 30)
+++ trunk/MikuMikuDanceXNA/Model/MMDModel.cs (revision 31)
@@ -204,7 +204,10 @@
204204 //ライティング設定の取得
205205 Vector3[] LightVectors, LightColors;
206206 mmdXNA.LightManager.GetParameters(out LightVectors, out LightColors);
207-
207+ //モデルのCullModeを変更
208+ CullMode mode = graphics.RenderState.CullMode;
209+ graphics.RenderState.CullMode = CullMode.None;
210+
208211 foreach (ModelMesh mesh in ModelData.ModelData.Meshes)
209212 {
210213 foreach (Effect effect in mesh.Effects)
@@ -246,8 +249,9 @@
246249 }
247250 mesh.Draw();
248251 }
252+ //CullModeの変更を戻す
253+ graphics.RenderState.CullMode = mode;
249254 }
250-
251255
252256 }
253257 }
Show on old repository browser