fix shaders
This commit is contained in:
parent
3559a9c78b
commit
06f1604660
2 changed files with 3 additions and 2 deletions
|
@ -28,5 +28,6 @@ void main() {
|
|||
vec2 shift = vec2(v2rand(coord + fract(time)) * 2.0 - 1.0, v2rand(coord + 0.5 + fract(time)) * 2.0 - 1.0);
|
||||
shift = vec2(dgauss(shift.x, 0.0, 1.0), dgauss(shift.y, 0.0, 1.0)) * 0.015;
|
||||
vec3 cl = vec3(inside(coord / vis_div, shift, 0.0, 1.0, 64.0, 1.0, 3.0, 1.0, 3.0), inside(coord / vis_div, shift, 0.0, 1.0, 64.0, 63.0, 1.0, 63.0, 1.0), inside(coord / vis_div, shift, 0.0, 1.0, 64.0, 61.0, 63.0, 61.0, 63.0));
|
||||
gl_FragColor = vec4(mix(vec3(0.0, 0.0, clamp(0.1 + 0.2 * (vertex.y + 64.0) / 128.0, 0.0, 1.0)), cl, clamp(cl.x + cl.y + cl.z, 0.0, 1.0)), 1.0);
|
||||
float white = clamp((vertex.y - 112.0) / 16.0, 0.0, 1.0);
|
||||
gl_FragColor = vec4(mix(vec3(white, white, clamp(white + 0.1 + 0.2 * (vertex.y + 64.0) / 128.0, 0.0, 1.0)), cl, clamp(cl.x + cl.y + cl.z, 0.0, 1.0)), 1.0);
|
||||
}
|
||||
|
|
|
@ -756,7 +756,7 @@ public abstract class UniverseRegistry extends DimensionRegistry {
|
|||
registerDomain("Digital", () -> {
|
||||
GeneratorSettings settings = new GeneratorSettings();
|
||||
settings.stretchY = 48.0f;
|
||||
registerArea("Cyberspace", new Area(0x000000, 16777216, 293.15f, 15, Blocks.cyber.getState(), Blocks.spring_water.getState(), 63).setLightColor(0x00003f).setShader(Shader.GRID),
|
||||
registerArea("Cyberspace", new Area(0x000000, 16777216, 293.15f, 15, Blocks.cyber.getState(), Blocks.spring_water.getState(), 63).setLightColor(0x0000ff).setShader(Shader.GRID),
|
||||
new GeneratorData().setGenerator(new GeneratorPerlin(false, settings, 0.1f, 3.5f)));
|
||||
});
|
||||
registerDomain("hell", "Hölle", () -> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue