[Feature] Parameter to change fog density
This commit is contained in:
parent
1de4db3cde
commit
3f04b85565
2 changed files with 16 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue