Skip to content

Commit

Permalink
structure change
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsPasi committed Jun 20, 2024
1 parent a4f21e7 commit 04fdc51
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/main/java/net/natural/motionblur/MotionBlurMod.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,13 @@ public class MotionBlurMod implements ClientModInitializer {

public static String ID = "naturalmotionblur";
private float currentBlur;

private static MotionBlurConfig config;

private static KeyBinding toggleKeybinding;
private static final Gson GSON = new GsonBuilder().setLenient().setPrettyPrinting().create();
private static final ManagedShaderEffect motionblur = ShaderEffectManager.getInstance().manage(new Identifier(ID, "shaders/post/motion_blur.json"),
shader -> shader.setUniformValue("BlendFactor", config.motionBlurStrength * 2));
private static final Gson GSON = new GsonBuilder().setLenient().setPrettyPrinting().create();
private static KeyBinding toggleKeybinding;
@Override



@Override
public void onInitializeClient() {
config = new MotionBlurConfig();

Expand Down

0 comments on commit 04fdc51

Please sign in to comment.