|
@@ -41,7 +41,7 @@ namespace Colored3DCube
|
|
basicEffect.World = worldMatrix;
|
|
basicEffect.World = worldMatrix;
|
|
basicEffect.View = viewMatrix;
|
|
basicEffect.View = viewMatrix;
|
|
basicEffect.Projection = projectionMatrix;
|
|
basicEffect.Projection = projectionMatrix;
|
|
- basicEffect.VertexColorEnabled = true;
|
|
|
|
|
|
+ //basicEffect.VertexColorEnabled = true;
|
|
|
|
|
|
CreateCubeVertexBuffer ();
|
|
CreateCubeVertexBuffer ();
|
|
CreateCubeIndexBuffer ();
|
|
CreateCubeIndexBuffer ();
|
|
@@ -85,8 +85,6 @@ namespace Colored3DCube
|
|
//graphics.GraphicsDevice.RasterizerState = rasterizerState1;
|
|
//graphics.GraphicsDevice.RasterizerState = rasterizerState1;
|
|
|
|
|
|
basicEffect.World = worldMatrix;
|
|
basicEffect.World = worldMatrix;
|
|
- basicEffect.View = viewMatrix;
|
|
|
|
- basicEffect.Projection = projectionMatrix;
|
|
|
|
|
|
|
|
foreach (EffectPass pass in basicEffect.CurrentTechnique.Passes) {
|
|
foreach (EffectPass pass in basicEffect.CurrentTechnique.Passes) {
|
|
pass.Apply ();
|
|
pass.Apply ();
|