-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathShaderSystem.cs
More file actions
33 lines (30 loc) · 856 Bytes
/
Copy pathShaderSystem.cs
File metadata and controls
33 lines (30 loc) · 856 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using Microsoft.Xna.Framework.Graphics;
using ReLogic.Content;
using Terraria.ModLoader;
namespace SylvVanity
{
public class ShaderSystem : ModSystem
{
/// <summary>
/// The mod's pixelation shader.
/// </summary>
public static Asset<Effect>? PixelationShader
{
get;
private set;
}
/// <summary>
/// The mod's feeler ribbon shader.
/// </summary>
public static Asset<Effect>? FeelerRibbonShader
{
get;
private set;
}
public override void OnModLoad()
{
PixelationShader = ModContent.Request<Effect>("SylvVanity/Assets/Shaders/PixelationShader");
FeelerRibbonShader = ModContent.Request<Effect>("SylvVanity/Assets/Shaders/LucilleFeelerShader");
}
}
}