[Feature] Parameter to change fog density

This commit is contained in:
Frank 2022-06-30 18:28:16 +02:00
parent 1de4db3cde
commit 3f04b85565
2 changed files with 16 additions and 2 deletions

View file

@ -66,6 +66,12 @@ public class ClientConfig extends NamedPathConfig {
"rendering"
);
public static final ConfigToken<Float> FOG_DENSITY = ConfigToken.Float(
1.0f,
"FogDensity",
"rendering"
);
public ClientConfig() {
super(BCLib.MOD_ID, "client", false);
}
@ -105,4 +111,8 @@ public class ClientConfig extends NamedPathConfig {
public boolean renderCustomFog() {
return get(CUSTOM_FOG_RENDERING);
}
public float fogDensity() {
return get(FOG_DENSITY);
}
}