예제 #1
0
        public static void DrawConeForLight(MyEffectPointLight effect, Matrix worldMatrix)
        {
            Matrix worldViewProjMatrix;
            Matrix.Multiply(ref worldMatrix, ref MyCamera.ViewProjectionMatrix, out worldViewProjMatrix);

            effect.SetWorldViewProjMatrix(ref worldViewProjMatrix);
            effect.SetWorldMatrix(ref worldMatrix);

            effect.Begin();

            m_modelCone.Render();

            effect.End();
        }
예제 #2
0
        public static void DrawHemisphereForLight(MyEffectPointLight effect, ref Matrix worldMatrix, ref Vector3 diffuseColor, float alpha)
        {
            Matrix worldViewProjMatrix;
            Matrix.Multiply(ref worldMatrix, ref MyCamera.ViewProjectionMatrix, out worldViewProjMatrix);

            effect.SetWorldViewProjMatrix(ref worldViewProjMatrix);
            effect.SetWorldMatrix(ref worldMatrix);

            effect.Begin();

            m_modelHemisphereLowRes.Render();

            effect.End();
        }