本文整理汇总了C#中PloobsEngine.PopBlendState方法的典型用法代码示例。如果您正苦于以下问题:C# PloobsEngine.PopBlendState方法的具体用法?C# PloobsEngine.PopBlendState怎么用?C# PloobsEngine.PopBlendState使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PloobsEngine
的用法示例。
在下文中一共展示了PloobsEngine.PopBlendState方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Draw
protected override void Draw(Microsoft.Xna.Framework.GameTime gt, PloobsEngine.SceneControl.IObject obj, PloobsEngine.SceneControl.RenderHelper render, PloobsEngine.Cameras.ICamera cam, IList<PloobsEngine.Light.ILight> lights)
{
render.PushBlendState(laser_blends);
effect.CurrentTechnique = effect_technique;
world.SetValue(obj.WorldMatrix);
wvp.SetValue(shader_matrices_combined[1] = obj.WorldMatrix * cam.View * cam.Projection);
effect_color.SetValue(color.ToVector4());
effect_center_to_viewer.SetValue(cam.Position);
render.RenderBatch(obj.Modelo.GetBatchInformation(0)[0], effect);
render.PopBlendState();
}
示例2: PosWithDepthDraw
protected override void PosWithDepthDraw(PloobsEngine.SceneControl.RenderHelper render, Microsoft.Xna.Framework.GameTime gt, ref Microsoft.Xna.Framework.Matrix activeView, ref Microsoft.Xna.Framework.Matrix activeProjection)
{
effect.Parameters["InvProj"].SetValue(Matrix.Invert(activeView * activeProjection));
effect.Parameters["halfPixel"].SetValue(GraphicInfo.HalfPixel);
effect.Parameters["DepthBuffer"].SetValue(render[PrincipalConstants.DephRT]);
render.PushBlendState(BlendState.AlphaBlend);
foreach (var item in Decals)
{
effect.Parameters["ProjectedTexture"].SetValue(item.tex);
effect.Parameters["ProjectorViewProjection"].SetValue(item.view * item.Projection);
render.RenderFullScreenQuadVertexPixel(effect);
}
render.PopBlendState();
base.PosWithDepthDraw(render, gt, ref activeView, ref activeProjection);
}
示例3: 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();
}