diff options
| author | 2024-11-19 01:50:17 +0200 | |
|---|---|---|
| committer | 2024-11-19 01:50:17 +0200 | |
| commit | 678e669d5d7da974a4afdc31d198e222d168b7d4 (patch) | |
| tree | 544fe207c6056c2d391f6dddfed29dd11537cf24 | |
| parent | Make chipped's secret oak doors look exactly the same as bookshelves :3 (diff) | |
| download | faithless16x-main.tar.gz faithless16x-main.tar.xz faithless16x-main.zip | |
8 files changed, 0 insertions, 293 deletions
diff --git a/assets/minecraft/shaders/core/rendertype_cutout.fsh b/assets/minecraft/shaders/core/rendertype_cutout.fsh deleted file mode 100755 index 8db7346c..00000000 --- a/assets/minecraft/shaders/core/rendertype_cutout.fsh +++ /dev/null | |||
| @@ -1,33 +0,0 @@ | |||
| 1 | #version 150 | ||
| 2 | |||
| 3 | #moj_import <fog.glsl> | ||
| 4 | #moj_import <emissive_utils.glsl> | ||
| 5 | |||
| 6 | uniform sampler2D Sampler0; | ||
| 7 | |||
| 8 | uniform vec4 ColorModulator; | ||
| 9 | uniform float FogStart; | ||
| 10 | uniform float FogEnd; | ||
| 11 | uniform vec4 FogColor; | ||
| 12 | |||
| 13 | in float vertexDistance; | ||
| 14 | in float dimension; | ||
| 15 | in vec4 vertexColor; | ||
| 16 | in vec4 lightColor; | ||
| 17 | in vec4 maxLightColor; | ||
| 18 | in vec2 texCoord0; | ||
| 19 | in vec3 faceLightingNormal; | ||
| 20 | in vec4 normal; | ||
| 21 | |||
| 22 | out vec4 fragColor; | ||
| 23 | |||
| 24 | void main() { | ||
| 25 | vec4 color = texture(Sampler0, texCoord0) * vertexColor * ColorModulator; | ||
| 26 | float alpha = textureLod(Sampler0, texCoord0, 0.0).a * 255.0; | ||
| 27 | color = make_emissive(color, lightColor, maxLightColor, vertexDistance, alpha) / face_lighting_check(faceLightingNormal, alpha, dimension); | ||
| 28 | color.a = remap_alpha(alpha) / 255.0; | ||
| 29 | if (color.a < 0.1) { | ||
| 30 | discard; | ||
| 31 | } | ||
| 32 | fragColor = linear_fog(color, vertexDistance, FogStart, FogEnd, FogColor); | ||
| 33 | } | ||
diff --git a/assets/minecraft/shaders/core/rendertype_cutout.vsh b/assets/minecraft/shaders/core/rendertype_cutout.vsh deleted file mode 100755 index 66307ce4..00000000 --- a/assets/minecraft/shaders/core/rendertype_cutout.vsh +++ /dev/null | |||
| @@ -1,41 +0,0 @@ | |||
| 1 | #version 150 | ||
| 2 | |||
| 3 | #moj_import <light.glsl> | ||
| 4 | #moj_import <fog.glsl> | ||
| 5 | #moj_import <emissive_utils.glsl> | ||
| 6 | |||
| 7 | in vec3 Position; | ||
| 8 | in vec4 Color; | ||
| 9 | in vec2 UV0; | ||
| 10 | in ivec2 UV2; | ||
| 11 | in vec3 Normal; | ||
| 12 | |||
| 13 | uniform sampler2D Sampler2; | ||
| 14 | |||
| 15 | uniform mat4 ModelViewMat; | ||
| 16 | uniform mat4 ProjMat; | ||
| 17 | uniform int FogShape; | ||
| 18 | uniform vec3 ChunkOffset; | ||
| 19 | |||
| 20 | out float vertexDistance; | ||
| 21 | out float dimension; | ||
| 22 | out vec4 vertexColor; | ||
| 23 | out vec4 lightColor; | ||
| 24 | out vec4 maxLightColor; | ||
| 25 | out vec2 texCoord0; | ||
| 26 | out vec3 faceLightingNormal; | ||
| 27 | out vec4 normal; | ||
| 28 | |||
| 29 | void main() { | ||
| 30 | vec3 pos = Position + ChunkOffset; | ||
| 31 | gl_Position = ProjMat * ModelViewMat * vec4(pos, 1.0); | ||
| 32 | |||
| 33 | vertexDistance = fog_distance(ModelViewMat, pos, FogShape); | ||
| 34 | dimension = get_dimension(minecraft_sample_lightmap(Sampler2, ivec2(0.0, 0.0))); | ||
| 35 | vertexColor = Color; | ||
| 36 | lightColor = minecraft_sample_lightmap(Sampler2, UV2); | ||
| 37 | maxLightColor = minecraft_sample_lightmap(Sampler2, ivec2(240.0, 240.0)); | ||
| 38 | texCoord0 = UV0; | ||
| 39 | faceLightingNormal = Normal; | ||
| 40 | normal = ProjMat * ModelViewMat * vec4(Normal, 0.0); | ||
| 41 | } | ||
diff --git a/assets/minecraft/shaders/core/rendertype_cutout_mipped.fsh b/assets/minecraft/shaders/core/rendertype_cutout_mipped.fsh deleted file mode 100755 index 5f085b1e..00000000 --- a/assets/minecraft/shaders/core/rendertype_cutout_mipped.fsh +++ /dev/null | |||
| @@ -1,33 +0,0 @@ | |||
| 1 | #version 150 | ||
| 2 | |||
| 3 | #moj_import <fog.glsl> | ||
| 4 | #moj_import <emissive_utils.glsl> | ||
| 5 | |||
| 6 | uniform sampler2D Sampler0; | ||
| 7 | |||
| 8 | uniform vec4 ColorModulator; | ||
| 9 | uniform float FogStart; | ||
| 10 | uniform float FogEnd; | ||
| 11 | uniform vec4 FogColor; | ||
| 12 | |||
| 13 | in float vertexDistance; | ||
| 14 | in float dimension; | ||
| 15 | in vec4 vertexColor; | ||
| 16 | in vec4 lightColor; | ||
| 17 | in vec4 maxLightColor; | ||
| 18 | in vec2 texCoord0; | ||
| 19 | in vec3 faceLightingNormal; | ||
| 20 | in vec4 normal; | ||
| 21 | |||
| 22 | out vec4 fragColor; | ||
| 23 | |||
| 24 | void main() { | ||
| 25 | vec4 color = texture(Sampler0, texCoord0) * vertexColor * ColorModulator; | ||
| 26 | float alpha = textureLod(Sampler0, texCoord0, 0.0).a * 255.0; | ||
| 27 | color = make_emissive(color, lightColor, maxLightColor, vertexDistance, alpha) / face_lighting_check(faceLightingNormal, alpha, dimension); | ||
| 28 | color.a = remap_alpha(alpha) / 255.0; | ||
| 29 | if (color.a < 0.5) { | ||
| 30 | discard; | ||
| 31 | } | ||
| 32 | fragColor = linear_fog(color, vertexDistance, FogStart, FogEnd, FogColor); | ||
| 33 | } | ||
diff --git a/assets/minecraft/shaders/core/rendertype_cutout_mipped.vsh b/assets/minecraft/shaders/core/rendertype_cutout_mipped.vsh deleted file mode 100755 index 66307ce4..00000000 --- a/assets/minecraft/shaders/core/rendertype_cutout_mipped.vsh +++ /dev/null | |||
| @@ -1,41 +0,0 @@ | |||
| 1 | #version 150 | ||
| 2 | |||
| 3 | #moj_import <light.glsl> | ||
| 4 | #moj_import <fog.glsl> | ||
| 5 | #moj_import <emissive_utils.glsl> | ||
| 6 | |||
| 7 | in vec3 Position; | ||
| 8 | in vec4 Color; | ||
| 9 | in vec2 UV0; | ||
| 10 | in ivec2 UV2; | ||
| 11 | in vec3 Normal; | ||
| 12 | |||
| 13 | uniform sampler2D Sampler2; | ||
| 14 | |||
| 15 | uniform mat4 ModelViewMat; | ||
| 16 | uniform mat4 ProjMat; | ||
| 17 | uniform int FogShape; | ||
| 18 | uniform vec3 ChunkOffset; | ||
| 19 | |||
| 20 | out float vertexDistance; | ||
| 21 | out float dimension; | ||
| 22 | out vec4 vertexColor; | ||
| 23 | out vec4 lightColor; | ||
| 24 | out vec4 maxLightColor; | ||
| 25 | out vec2 texCoord0; | ||
| 26 | out vec3 faceLightingNormal; | ||
| 27 | out vec4 normal; | ||
| 28 | |||
| 29 | void main() { | ||
| 30 | vec3 pos = Position + ChunkOffset; | ||
| 31 | gl_Position = ProjMat * ModelViewMat * vec4(pos, 1.0); | ||
| 32 | |||
| 33 | vertexDistance = fog_distance(ModelViewMat, pos, FogShape); | ||
| 34 | dimension = get_dimension(minecraft_sample_lightmap(Sampler2, ivec2(0.0, 0.0))); | ||
| 35 | vertexColor = Color; | ||
| 36 | lightColor = minecraft_sample_lightmap(Sampler2, UV2); | ||
| 37 | maxLightColor = minecraft_sample_lightmap(Sampler2, ivec2(240.0, 240.0)); | ||
| 38 | texCoord0 = UV0; | ||
| 39 | faceLightingNormal = Normal; | ||
| 40 | normal = ProjMat * ModelViewMat * vec4(Normal, 0.0); | ||
| 41 | } | ||
diff --git a/assets/minecraft/shaders/core/rendertype_solid.fsh b/assets/minecraft/shaders/core/rendertype_solid.fsh deleted file mode 100755 index d51f5041..00000000 --- a/assets/minecraft/shaders/core/rendertype_solid.fsh +++ /dev/null | |||
| @@ -1,33 +0,0 @@ | |||
| 1 | #version 150 | ||
| 2 | |||
| 3 | #moj_import <fog.glsl> | ||
| 4 | #moj_import <emissive_utils.glsl> | ||
| 5 | |||
| 6 | uniform sampler2D Sampler0; | ||
| 7 | |||
| 8 | uniform vec4 ColorModulator; | ||
| 9 | uniform float FogStart; | ||
| 10 | uniform float FogEnd; | ||
| 11 | uniform vec4 FogColor; | ||
| 12 | |||
| 13 | in float vertexDistance; | ||
| 14 | in float dimension; | ||
| 15 | in vec4 vertexColor; | ||
| 16 | in vec4 lightColor; | ||
| 17 | in vec4 maxLightColor; | ||
| 18 | in vec2 texCoord0; | ||
| 19 | in vec3 faceLightingNormal; | ||
| 20 | in vec4 normal; | ||
| 21 | |||
| 22 | out vec4 fragColor; | ||
| 23 | |||
| 24 | void main() { | ||
| 25 | vec4 color = texture(Sampler0, texCoord0) * vertexColor * ColorModulator; | ||
| 26 | if (color.a < 0.1) { | ||
| 27 | discard; | ||
| 28 | } | ||
| 29 | float alpha = textureLod(Sampler0, texCoord0, 0.0).a * 255.0; | ||
| 30 | color = make_emissive(color, lightColor, maxLightColor, vertexDistance, alpha) / face_lighting_check(faceLightingNormal, alpha, dimension); | ||
| 31 | color.a = remap_alpha(alpha) / 255.0; | ||
| 32 | fragColor = linear_fog(color, vertexDistance, FogStart, FogEnd, FogColor); | ||
| 33 | } | ||
diff --git a/assets/minecraft/shaders/core/rendertype_solid.vsh b/assets/minecraft/shaders/core/rendertype_solid.vsh deleted file mode 100755 index 66307ce4..00000000 --- a/assets/minecraft/shaders/core/rendertype_solid.vsh +++ /dev/null | |||
| @@ -1,41 +0,0 @@ | |||
| 1 | #version 150 | ||
| 2 | |||
| 3 | #moj_import <light.glsl> | ||
| 4 | #moj_import <fog.glsl> | ||
| 5 | #moj_import <emissive_utils.glsl> | ||
| 6 | |||
| 7 | in vec3 Position; | ||
| 8 | in vec4 Color; | ||
| 9 | in vec2 UV0; | ||
| 10 | in ivec2 UV2; | ||
| 11 | in vec3 Normal; | ||
| 12 | |||
| 13 | uniform sampler2D Sampler2; | ||
| 14 | |||
| 15 | uniform mat4 ModelViewMat; | ||
| 16 | uniform mat4 ProjMat; | ||
| 17 | uniform int FogShape; | ||
| 18 | uniform vec3 ChunkOffset; | ||
| 19 | |||
| 20 | out float vertexDistance; | ||
| 21 | out float dimension; | ||
| 22 | out vec4 vertexColor; | ||
| 23 | out vec4 lightColor; | ||
| 24 | out vec4 maxLightColor; | ||
| 25 | out vec2 texCoord0; | ||
| 26 | out vec3 faceLightingNormal; | ||
| 27 | out vec4 normal; | ||
| 28 | |||
| 29 | void main() { | ||
| 30 | vec3 pos = Position + ChunkOffset; | ||
| 31 | gl_Position = ProjMat * ModelViewMat * vec4(pos, 1.0); | ||
| 32 | |||
| 33 | vertexDistance = fog_distance(ModelViewMat, pos, FogShape); | ||
| 34 | dimension = get_dimension(minecraft_sample_lightmap(Sampler2, ivec2(0.0, 0.0))); | ||
| 35 | vertexColor = Color; | ||
| 36 | lightColor = minecraft_sample_lightmap(Sampler2, UV2); | ||
| 37 | maxLightColor = minecraft_sample_lightmap(Sampler2, ivec2(240.0, 240.0)); | ||
| 38 | texCoord0 = UV0; | ||
| 39 | faceLightingNormal = Normal; | ||
| 40 | normal = ProjMat * ModelViewMat * vec4(Normal, 0.0); | ||
| 41 | } | ||
diff --git a/assets/minecraft/shaders/core/rendertype_translucent.fsh b/assets/minecraft/shaders/core/rendertype_translucent.fsh deleted file mode 100755 index 2491aecf..00000000 --- a/assets/minecraft/shaders/core/rendertype_translucent.fsh +++ /dev/null | |||
| @@ -1,30 +0,0 @@ | |||
| 1 | #version 150 | ||
| 2 | |||
| 3 | #moj_import <fog.glsl> | ||
| 4 | #moj_import <emissive_utils.glsl> | ||
| 5 | |||
| 6 | uniform sampler2D Sampler0; | ||
| 7 | |||
| 8 | uniform vec4 ColorModulator; | ||
| 9 | uniform float FogStart; | ||
| 10 | uniform float FogEnd; | ||
| 11 | uniform vec4 FogColor; | ||
| 12 | |||
| 13 | in float vertexDistance; | ||
| 14 | in float dimension; | ||
| 15 | in vec4 vertexColor; | ||
| 16 | in vec4 lightColor; | ||
| 17 | in vec4 maxLightColor; | ||
| 18 | in vec2 texCoord0; | ||
| 19 | in vec3 faceLightingNormal; | ||
| 20 | in vec4 normal; | ||
| 21 | |||
| 22 | out vec4 fragColor; | ||
| 23 | |||
| 24 | void main() { | ||
| 25 | vec4 color = texture(Sampler0, texCoord0) * vertexColor * ColorModulator; | ||
| 26 | float alpha = textureLod(Sampler0, texCoord0, 0.0).a * 255.0; | ||
| 27 | color = make_emissive(color, lightColor, maxLightColor, vertexDistance, alpha) / face_lighting_check(faceLightingNormal, alpha, dimension); | ||
| 28 | color.a = remap_alpha(alpha) / 255.0; | ||
| 29 | fragColor = linear_fog(color, vertexDistance, FogStart, FogEnd, FogColor); | ||
| 30 | } | ||
diff --git a/assets/minecraft/shaders/core/rendertype_translucent.vsh b/assets/minecraft/shaders/core/rendertype_translucent.vsh deleted file mode 100755 index 66307ce4..00000000 --- a/assets/minecraft/shaders/core/rendertype_translucent.vsh +++ /dev/null | |||
| @@ -1,41 +0,0 @@ | |||
| 1 | #version 150 | ||
| 2 | |||
| 3 | #moj_import <light.glsl> | ||
| 4 | #moj_import <fog.glsl> | ||
| 5 | #moj_import <emissive_utils.glsl> | ||
| 6 | |||
| 7 | in vec3 Position; | ||
| 8 | in vec4 Color; | ||
| 9 | in vec2 UV0; | ||
| 10 | in ivec2 UV2; | ||
| 11 | in vec3 Normal; | ||
| 12 | |||
| 13 | uniform sampler2D Sampler2; | ||
| 14 | |||
| 15 | uniform mat4 ModelViewMat; | ||
| 16 | uniform mat4 ProjMat; | ||
| 17 | uniform int FogShape; | ||
| 18 | uniform vec3 ChunkOffset; | ||
| 19 | |||
| 20 | out float vertexDistance; | ||
| 21 | out float dimension; | ||
| 22 | out vec4 vertexColor; | ||
| 23 | out vec4 lightColor; | ||
| 24 | out vec4 maxLightColor; | ||
| 25 | out vec2 texCoord0; | ||
| 26 | out vec3 faceLightingNormal; | ||
| 27 | out vec4 normal; | ||
| 28 | |||
| 29 | void main() { | ||
| 30 | vec3 pos = Position + ChunkOffset; | ||
| 31 | gl_Position = ProjMat * ModelViewMat * vec4(pos, 1.0); | ||
| 32 | |||
| 33 | vertexDistance = fog_distance(ModelViewMat, pos, FogShape); | ||
| 34 | dimension = get_dimension(minecraft_sample_lightmap(Sampler2, ivec2(0.0, 0.0))); | ||
| 35 | vertexColor = Color; | ||
| 36 | lightColor = minecraft_sample_lightmap(Sampler2, UV2); | ||
| 37 | maxLightColor = minecraft_sample_lightmap(Sampler2, ivec2(240.0, 240.0)); | ||
| 38 | texCoord0 = UV0; | ||
| 39 | faceLightingNormal = Normal; | ||
| 40 | normal = ProjMat * ModelViewMat * vec4(Normal, 0.0); | ||
| 41 | } | ||