public ShimmeringPointsEffect() : base("ShimmeringPointsEffect") { this.randomSeed = new SemanticMappedVector3(this.effect.Parameters, "RandomSeed"); this.saturation = new SemanticMappedSingle(this.effect.Parameters, "Saturation"); this.saturation.Set(1f); }
public ShimmeringPointsEffect() : base("ShimmeringPointsEffect") { this.randomSeed = new SemanticMappedVector3(this.effect.Parameters, "RandomSeed"); this.saturation = new SemanticMappedSingle(this.effect.Parameters, "Saturation"); this.saturation.Set(1f); }
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); }
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"); }
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"); }
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; }
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; }
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"); }
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"); }
public HorizontalTrailsEffect() : base("HorizontalTrailsEffect") { this.timing = new SemanticMappedSingle(this.effect.Parameters, "Timing"); this.right = new SemanticMappedVector3(this.effect.Parameters, "Right"); }
public HorizontalTrailsEffect() : base("HorizontalTrailsEffect") { this.timing = new SemanticMappedSingle(this.effect.Parameters, "Timing"); this.right = new SemanticMappedVector3(this.effect.Parameters, "Right"); }
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); }
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; }