Askew World 图标

Askew World

作者:rebot | 分类:数据包

价格:0 墨喵币 下载量:0 点赞:0 版本 1
本资源为搬运资源,原资源地址: https://modrinth.com/resourcepack/askew-world
资源信息

Minecraft 版本: 1.21 1.21.1 1.21.2 1.21.3 1.21.4 1.21.5 1.21.6 1.21.7 1.21.8

平台: minecraft

标签: blocks core-shaders vanilla-like

资源介绍

Incompatible with Sodium

Resource pack makes askew world

askew world

In resource pack have onle terrain.vsh

terrain.vsh

#version 150

in vec3 Position;
in vec4 Color;
in vec2 UV0;
in ivec2 UV2;
in vec3 Normal;

uniform sampler2D Sampler2;
uniform sampler2D NoiseTexture;

uniform mat4 ModelViewMat;
uniform mat4 ProjMat;
uniform vec3 ModelOffset;
uniform float GameTime;

out float vertexDistance;
out vec4 vertexColor;
out vec2 texCoord0;
out vec3 normal;

void main() {
    float discreteTime = floor(GameTime * 5.0) / 5.0;

    vec3 blockPos = floor(Position + 0.5);

    float borderFactorX = smoothstep(0.0, 1.0, min(mod(Position.x, 16.0), 16.0 - mod(Position.x, 16.0)));
    float borderFactorZ = smoothstep(0.0, 1.0, min(mod(Position.z, 16.0), 16.0 - mod(Position.z, 16.0)));
    float borderFactor = min(borderFactorX, borderFactorZ);

    vec3 offset = vec3(0.0);
    if (borderFactor > 0.01) {
        vec2 noiseCoord = blockPos.xz * 0.1 + vec2(discreteTime * 0.5, 0.0);
        offset = vec3(
            texture(NoiseTexture, noiseCoord).r - 0.5,
            texture(NoiseTexture, noiseCoord + vec2(0.3, 0.7)).r - 0.5,
            texture(NoiseTexture, noiseCoord + vec2(0.7, 0.3)).r - 0.5
        ) * 0.1 * borderFactor; // Плавное затухание к границам
    }

    vec3 worldPos = Position + ModelOffset;
    vec3 distortedPos = worldPos + offset;

    gl_Position = ProjMat * ModelViewMat * vec4(distortedPos, 1.0);
    vertexDistance = length((ModelViewMat * vec4(distortedPos, 1.0)).xyz);
    vertexColor = Color * texelFetch(Sampler2, UV2 / 16, 0);
    texCoord0 = UV0;
    normal = Normal;
}
下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Cyberpunk Edgerunners

价格:0 墨喵币
下载量:0

查看详情
'Bare Metals' for Create Utilities

价格:0 墨喵币
下载量:0

查看详情
3D Harnesses

价格:0 墨喵币
下载量:0

查看详情
Smart item deleter V2

价格:0 墨喵币
下载量:0

查看详情