1 using SiliconStudio.Paradox.Effects.Modules;
2 using SiliconStudio.Paradox.Games;
3 using SiliconStudio.Paradox.Graphics;
4 using SiliconStudio.Core;
5 using SiliconStudio.Core.Xaml.Markup;
7 namespace SiliconStudio.
Paradox.Effects
9 [ContentProperty(
"Effect")]
12 private EffectOld instantiatedEffect;
13 private EffectMesh effectMesh;
22 public float ResizeFactor {
get; set; }
26 public EffectBuilder
Effect {
get; set; }
32 if (renderSource == null)
36 set { renderSource = value; }
41 public override void Load()
45 Effect.Services = Services;
46 instantiatedEffect = Effect.InstantiatePermutation();
49 effectMesh =
new EffectMesh(instantiatedEffect, null,
"PostEffectMesh").KeepAliveBy(
this);
50 effectMesh.Parameters.Set(TexturingKeys.Texture0, RenderSource);
51 effectMesh.Parameters.Set(RenderTargetKeys.RenderTarget,
RenderTarget);
56 RenderSystem.GlobalMeshes.AddMesh(effectMesh);
A renderable texture view.
Performs primitive-based rendering, creates resources, handles system-level variables, adjusts gamma ramp levels, and creates shaders. See The+GraphicsDevice+class to learn more about the class.
int Width
Gets the width in texel.
A Texture 2D frontend to SharpDX.Direct3D11.Texture2D.
int Height
Gets the height in texel.
RenderPass is a hierarchy that defines how to collect and render meshes.
PixelFormat
Defines various types of pixel formats.