Beispiel #1
0
 public ShimmeringPointsEffect()
   : base("ShimmeringPointsEffect")
 {
   this.randomSeed = new SemanticMappedVector3(this.effect.Parameters, "RandomSeed");
   this.saturation = new SemanticMappedSingle(this.effect.Parameters, "Saturation");
   this.saturation.Set(1f);
 }
Beispiel #2
0
 public ShimmeringPointsEffect()
     : base("ShimmeringPointsEffect")
 {
     this.randomSeed = new SemanticMappedVector3(this.effect.Parameters, "RandomSeed");
     this.saturation = new SemanticMappedSingle(this.effect.Parameters, "Saturation");
     this.saturation.Set(1f);
 }
Beispiel #3
0
 private void Initialize()
 {
     this.fog            = new FogEffectStructure(this.effect.Parameters);
     this.centerPosition = new SemanticMappedVector3(this.effect.Parameters, "CenterPosition");
     this.aspectRatio    = new SemanticMappedSingle(this.effect.Parameters, "AspectRatio");
     this.texelOffset    = new SemanticMappedVector2(this.effect.Parameters, "TexelOffset");
     this.time           = new SemanticMappedSingle(this.effect.Parameters, "Time");
     this.baseAmbient    = new SemanticMappedVector3(this.effect.Parameters, "BaseAmbient");
     this.eye            = new SemanticMappedVector3(this.effect.Parameters, "Eye");
     this.diffuseLight   = new SemanticMappedVector3(this.effect.Parameters, "DiffuseLight");
     this.eyeSign        = new SemanticMappedVector3(this.effect.Parameters, "EyeSign");
     this.levelCenter    = new SemanticMappedVector3(this.effect.Parameters, "LevelCenter");
     this.stopWatch      = Stopwatch.StartNew();
     this.EngineState.PauseStateChanged    += new Action(this.CheckPause);
     this.CameraProvider.ViewChanged       += new Action(this.RefreshViewProjection);
     this.CameraProvider.ProjectionChanged += new Action(this.RefreshViewProjection);
     this.RefreshViewProjection();
     this.CameraProvider.ViewChanged += new Action(this.RefreshCenterPosition);
     this.RefreshCenterPosition();
     this.CameraProvider.ProjectionChanged += new Action(this.RefreshAspectRatio);
     this.RefreshAspectRatio();
     this.FogProvider.FogSettingsChanged += new Action(this.RefreshFog);
     this.RefreshFog();
     this.LevelManager.LightingChanged += new Action(this.RefreshLighting);
     this.RefreshLighting();
     this.GraphicsDeviceService.DeviceReset += new EventHandler <EventArgs>(this.RefreshTexelSize);
     this.RefreshTexelSize();
     this.eyeSign.Set(BaseEffect.sharedEyeSign);
     this.levelCenter.Set(BaseEffect.sharedLevelCenter);
 }
Beispiel #4
0
 public BurnInPostEffect()
   : base("BurnInPostEffect")
 {
   this.acceptColor = new SemanticMappedVector3(this.effect.Parameters, "AcceptColor");
   this.acceptColor.Set(new Vector3(0.9333333f, 0.0f, 0.5529412f));
   this.oldFrameBuffer = new SemanticMappedTexture(this.effect.Parameters, "OldFrameTexture");
   this.newFrameBuffer = new SemanticMappedTexture(this.effect.Parameters, "NewFrameTexture");
 }
Beispiel #5
0
 public BurnInPostEffect()
     : base("BurnInPostEffect")
 {
     this.acceptColor = new SemanticMappedVector3(this.effect.Parameters, "AcceptColor");
     this.acceptColor.Set(new Vector3(0.9333333f, 0.0f, 0.5529412f));
     this.oldFrameBuffer = new SemanticMappedTexture(this.effect.Parameters, "OldFrameTexture");
     this.newFrameBuffer = new SemanticMappedTexture(this.effect.Parameters, "NewFrameTexture");
 }
Beispiel #6
0
 public ProjectedNodeEffect()
   : base("ProjectedNodeEffect")
 {
   this.texture = new SemanticMappedTexture(this.effect.Parameters, "BaseTexture");
   this.textureSize = new SemanticMappedVector2(this.effect.Parameters, "TextureSize");
   this.viewportSize = new SemanticMappedVector2(this.effect.Parameters, "ViewportSize");
   this.cubeOffset = new SemanticMappedVector3(this.effect.Parameters, "CubeOffset");
   this.pixPerTrix = new SemanticMappedSingle(this.effect.Parameters, "PixelsPerTrixel");
   this.noTexture = new SemanticMappedBoolean(this.effect.Parameters, "NoTexture");
   this.complete = new SemanticMappedBoolean(this.effect.Parameters, "Complete");
   this.Pass = LightingEffectPass.Main;
 }
Beispiel #7
0
 public ProjectedNodeEffect()
     : base("ProjectedNodeEffect")
 {
     this.texture      = new SemanticMappedTexture(this.effect.Parameters, "BaseTexture");
     this.textureSize  = new SemanticMappedVector2(this.effect.Parameters, "TextureSize");
     this.viewportSize = new SemanticMappedVector2(this.effect.Parameters, "ViewportSize");
     this.cubeOffset   = new SemanticMappedVector3(this.effect.Parameters, "CubeOffset");
     this.pixPerTrix   = new SemanticMappedSingle(this.effect.Parameters, "PixelsPerTrixel");
     this.noTexture    = new SemanticMappedBoolean(this.effect.Parameters, "NoTexture");
     this.complete     = new SemanticMappedBoolean(this.effect.Parameters, "Complete");
     this.Pass         = LightingEffectPass.Main;
 }
Beispiel #8
0
 public GomezEffect()
     : base("GomezEffect")
 {
     this.animatedTexture = new SemanticMappedTexture(this.effect.Parameters, "AnimatedTexture");
     this.silhouette      = new SemanticMappedBoolean(this.effect.Parameters, "Silhouette");
     this.background      = new SemanticMappedSingle(this.effect.Parameters, "Background");
     this.colorSwap       = new SemanticMappedBoolean(this.effect.Parameters, "ColorSwap");
     this.redSwap         = new SemanticMappedVector3(this.effect.Parameters, "RedSwap");
     this.blackSwap       = new SemanticMappedVector3(this.effect.Parameters, "BlackSwap");
     this.whiteSwap       = new SemanticMappedVector3(this.effect.Parameters, "WhiteSwap");
     this.yellowSwap      = new SemanticMappedVector3(this.effect.Parameters, "YellowSwap");
     this.graySwap        = new SemanticMappedVector3(this.effect.Parameters, "GraySwap");
     this.noMoreFez       = new SemanticMappedBoolean(this.effect.Parameters, "NoMoreFez");
     this.Pass            = LightingEffectPass.Main;
 }
 public MaterialEffectStructure(EffectParameterCollection parameters)
 {
   this.diffuse = new SemanticMappedVector3(parameters, "Material_Diffuse");
   this.opacity = new SemanticMappedSingle(parameters, "Material_Opacity");
 }
Beispiel #10
0
 public FogEffectStructure(EffectParameterCollection parameters)
 {
   this.fogType = new SemanticMappedInt32(parameters, "Fog_Type");
   this.fogColor = new SemanticMappedVector3(parameters, "Fog_Color");
   this.fogDensity = new SemanticMappedSingle(parameters, "Fog_Density");
 }
Beispiel #11
0
 public HorizontalTrailsEffect()
   : base("HorizontalTrailsEffect")
 {
   this.timing = new SemanticMappedSingle(this.effect.Parameters, "Timing");
   this.right = new SemanticMappedVector3(this.effect.Parameters, "Right");
 }
Beispiel #12
0
 public HorizontalTrailsEffect()
     : base("HorizontalTrailsEffect")
 {
     this.timing = new SemanticMappedSingle(this.effect.Parameters, "Timing");
     this.right  = new SemanticMappedVector3(this.effect.Parameters, "Right");
 }
Beispiel #13
0
 private void Initialize()
 {
   this.fog = new FogEffectStructure(this.effect.Parameters);
   this.centerPosition = new SemanticMappedVector3(this.effect.Parameters, "CenterPosition");
   this.aspectRatio = new SemanticMappedSingle(this.effect.Parameters, "AspectRatio");
   this.texelOffset = new SemanticMappedVector2(this.effect.Parameters, "TexelOffset");
   this.time = new SemanticMappedSingle(this.effect.Parameters, "Time");
   this.baseAmbient = new SemanticMappedVector3(this.effect.Parameters, "BaseAmbient");
   this.eye = new SemanticMappedVector3(this.effect.Parameters, "Eye");
   this.diffuseLight = new SemanticMappedVector3(this.effect.Parameters, "DiffuseLight");
   this.eyeSign = new SemanticMappedVector3(this.effect.Parameters, "EyeSign");
   this.levelCenter = new SemanticMappedVector3(this.effect.Parameters, "LevelCenter");
   this.stopWatch = Stopwatch.StartNew();
   this.EngineState.PauseStateChanged += new Action(this.CheckPause);
   this.CameraProvider.ViewChanged += new Action(this.RefreshViewProjection);
   this.CameraProvider.ProjectionChanged += new Action(this.RefreshViewProjection);
   this.RefreshViewProjection();
   this.CameraProvider.ViewChanged += new Action(this.RefreshCenterPosition);
   this.RefreshCenterPosition();
   this.CameraProvider.ProjectionChanged += new Action(this.RefreshAspectRatio);
   this.RefreshAspectRatio();
   this.FogProvider.FogSettingsChanged += new Action(this.RefreshFog);
   this.RefreshFog();
   this.LevelManager.LightingChanged += new Action(this.RefreshLighting);
   this.RefreshLighting();
   this.GraphicsDeviceService.DeviceReset += new EventHandler<EventArgs>(this.RefreshTexelSize);
   this.RefreshTexelSize();
   this.eyeSign.Set(BaseEffect.sharedEyeSign);
   this.levelCenter.Set(BaseEffect.sharedLevelCenter);
 }
Beispiel #14
0
 public GomezEffect()
   : base("GomezEffect")
 {
   this.animatedTexture = new SemanticMappedTexture(this.effect.Parameters, "AnimatedTexture");
   this.silhouette = new SemanticMappedBoolean(this.effect.Parameters, "Silhouette");
   this.background = new SemanticMappedSingle(this.effect.Parameters, "Background");
   this.colorSwap = new SemanticMappedBoolean(this.effect.Parameters, "ColorSwap");
   this.redSwap = new SemanticMappedVector3(this.effect.Parameters, "RedSwap");
   this.blackSwap = new SemanticMappedVector3(this.effect.Parameters, "BlackSwap");
   this.whiteSwap = new SemanticMappedVector3(this.effect.Parameters, "WhiteSwap");
   this.yellowSwap = new SemanticMappedVector3(this.effect.Parameters, "YellowSwap");
   this.graySwap = new SemanticMappedVector3(this.effect.Parameters, "GraySwap");
   this.noMoreFez = new SemanticMappedBoolean(this.effect.Parameters, "NoMoreFez");
   this.Pass = LightingEffectPass.Main;
 }