本文整理汇总了C#中PloobsEngine.PopRasterizerState方法的典型用法代码示例。如果您正苦于以下问题:C# PloobsEngine.PopRasterizerState方法的具体用法?C# PloobsEngine.PopRasterizerState怎么用?C# PloobsEngine.PopRasterizerState使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PloobsEngine
的用法示例。
在下文中一共展示了PloobsEngine.PopRasterizerState方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: PreDrawnPhase
public void PreDrawnPhase(Microsoft.Xna.Framework.GameTime gt, PloobsEngine.SceneControl.IWorld mundo, PloobsEngine.SceneControl.IObject obj, PloobsEngine.Cameras.ICamera cam, IList<PloobsEngine.Light.ILight> lights, PloobsEngine.SceneControl.RenderHelper render)
{
Vector3 pos = obj.PhysicObject.Position;
render.PushRasterizerState(d);
render.RenderSceneToTextureCube(RenderTargetCube,
Color.AliceBlue, mundo, ref pos, gt, true, false, new List<PloobsEngine.SceneControl.IObject>() { obj });
render.PopRasterizerState();
}
示例2: PosDrawPhase
public override void PosDrawPhase(GameTime gt, PloobsEngine.SceneControl.IObject obj, PloobsEngine.SceneControl.RenderHelper render, PloobsEngine.Cameras.ICamera cam, IList<PloobsEngine.Light.ILight> lights)
{
render.PushRasterizerState(cullMode);
render.PushBlendState(BlendState.NonPremultiplied);
alphagradative.Parameters["camCenter"].SetValue(cam.Position);
for (int i = 0; i < obj.Modelo.MeshNumber; i++)
{
BatchInformation[] bi = obj.Modelo.GetBatchInformation(i);
for (int j = 0; j < bi.Count(); j++)
{
alphagradative.Parameters["colorMap"].SetValue(obj.Modelo.getTexture(TextureType.DIFFUSE, i, j));
Matrix w1 = Matrix.Multiply(obj.WorldMatrix, bi[j].ModelLocalTransformation);
alphagradative.Parameters["wvp"].SetValue(w1 * cam.ViewProjection);
alphagradative.Parameters["w"].SetValue(w1);
render.RenderBatch(bi[j], alphagradative);
}
}
render.PopBlendState();
render.PopRasterizerState();
}