mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-28 13:15:30 +01:00
Add 'onlyiflit' setting for HD cave shader
This commit is contained in:
parent
e3501142cd
commit
820bd3993e
@ -11,10 +11,12 @@ import org.json.simple.JSONObject;
|
|||||||
|
|
||||||
public class CaveHDShader implements HDShader {
|
public class CaveHDShader implements HDShader {
|
||||||
private String name;
|
private String name;
|
||||||
|
private boolean iflit;
|
||||||
|
|
||||||
|
|
||||||
public CaveHDShader(ConfigurationNode configuration) {
|
public CaveHDShader(ConfigurationNode configuration) {
|
||||||
name = (String) configuration.get("name");
|
name = (String) configuration.get("name");
|
||||||
|
iflit = configuration.getBoolean("onlyiflit", false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -44,7 +46,7 @@ public class CaveHDShader implements HDShader {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isEmittedLightLevelNeeded() {
|
public boolean isEmittedLightLevelNeeded() {
|
||||||
return false;
|
return iflit;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -111,6 +113,9 @@ public class CaveHDShader implements HDShader {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!air) {
|
if (!air) {
|
||||||
|
if(iflit && (ps.getEmittedLightLevel() == 0)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
int cr, cg, cb;
|
int cr, cg, cb;
|
||||||
int mult = 256;
|
int mult = 256;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user