-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
93 additions
and
209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
using fluXis.Game.Map.Events; | ||
using osu.Framework.Graphics; | ||
|
||
namespace fluXis.Game.Graphics.Shaders.Chromatic; | ||
|
||
public partial class ChromaticContainer : ShaderContainer | ||
{ | ||
protected override string FragmentShader => "ChromaticAberration"; | ||
public override ShaderType Type => ShaderType.Chromatic; | ||
protected override DrawNode CreateShaderDrawNode() => new ChromaticContainerDrawNode(this, SharedData); | ||
|
||
/// <summary> | ||
/// The strength of the chromatic aberration effect. In pixels. | ||
/// </summary> | ||
public float Strength { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
using fluXis.Game.Map.Events; | ||
using osu.Framework.Graphics; | ||
|
||
namespace fluXis.Game.Graphics.Shaders.Greyscale; | ||
|
||
public partial class GreyscaleContainer : ShaderContainer | ||
{ | ||
protected override string FragmentShader => "Greyscale"; | ||
public override ShaderType Type => ShaderType.Greyscale; | ||
protected override DrawNode CreateShaderDrawNode() => new GreyscaleDrawNode(this, SharedData); | ||
|
||
/// <summary> | ||
/// The strength of the greyscale effect. From 0 to 1. | ||
/// </summary> | ||
public float Strength { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
using fluXis.Game.Map.Events; | ||
using osu.Framework.Graphics; | ||
|
||
namespace fluXis.Game.Graphics.Shaders.Invert; | ||
|
||
public partial class InvertContainer : ShaderContainer | ||
{ | ||
protected override string FragmentShader => "Invert"; | ||
public override ShaderType Type => ShaderType.Invert; | ||
protected override DrawNode CreateShaderDrawNode() => new InvertContainerDrawNode(this, SharedData); | ||
|
||
/// <summary> | ||
/// The strength of the invert effect. From 0 to 1. | ||
/// </summary> | ||
public float Strength { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,11 @@ | ||
using fluXis.Game.Map.Events; | ||
using osu.Framework.Graphics; | ||
|
||
namespace fluXis.Game.Graphics.Shaders.Mosaic; | ||
|
||
public partial class MosaicContainer : ShaderContainer | ||
{ | ||
protected override string FragmentShader => "Mosaic"; | ||
public override ShaderType Type => ShaderType.Mosaic; | ||
protected override DrawNode CreateShaderDrawNode() => new MosaicDrawNode(this, SharedData); | ||
|
||
private float strength; | ||
|
||
/// <summary> | ||
/// The strength of the mosaic effect. From 0 to 1. | ||
/// <br/> | ||
/// 0 means its full resolution, 1 means its 1x1 pixel. | ||
/// </summary> | ||
public float Strength | ||
{ | ||
get => strength; | ||
set | ||
{ | ||
if (value == strength) | ||
return; | ||
|
||
strength = value; | ||
Invalidate(Invalidation.DrawNode); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
using fluXis.Game.Map.Events; | ||
using osu.Framework.Graphics; | ||
|
||
namespace fluXis.Game.Graphics.Shaders.Noise; | ||
|
||
public partial class NoiseContainer : ShaderContainer | ||
{ | ||
protected override string FragmentShader => "Noise"; | ||
public override ShaderType Type => ShaderType.Noise; | ||
protected override DrawNode CreateShaderDrawNode() => new NoiseContainerDrawNode(this, SharedData); | ||
|
||
/// <summary> | ||
/// The strength of the invert effect. From 0 to 1. | ||
/// </summary> | ||
public float Strength { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
using fluXis.Game.Map.Events; | ||
using osu.Framework.Graphics; | ||
|
||
namespace fluXis.Game.Graphics.Shaders.Retro; | ||
|
||
public partial class RetroContainer : ShaderContainer | ||
{ | ||
protected override string FragmentShader => "Retro"; | ||
public override ShaderType Type => ShaderType.Retro; | ||
protected override DrawNode CreateShaderDrawNode() => new RetroContainerDrawNode(this, SharedData); | ||
|
||
/// <summary> | ||
/// The strength of the invert effect. From 0 to 1. | ||
/// </summary> | ||
public float Strength { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
using fluXis.Game.Map.Events; | ||
using osu.Framework.Graphics; | ||
|
||
namespace fluXis.Game.Graphics.Shaders.Vignette; | ||
|
||
public partial class VignetteContainer : ShaderContainer | ||
{ | ||
protected override string FragmentShader => "Vignette"; | ||
public override ShaderType Type => ShaderType.Vignette; | ||
protected override DrawNode CreateShaderDrawNode() => new VignetteContainerDrawNode(this, SharedData); | ||
|
||
/// <summary> | ||
/// The strength of the invert effect. From 0 to 1. | ||
/// </summary> | ||
public float Strength { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.