-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
87eb893
commit 5a1d4a5
Showing
28 changed files
with
499 additions
and
510 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
363 changes: 215 additions & 148 deletions
363
...va/generations/gg/generations/core/generationscore/client/render/rarecandy/Pipelines.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
79 changes: 79 additions & 0 deletions
79
common/src/main/resources/assets/generations_core/shaders/block/layered.fs.glsl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
#version 330 core | ||
|
||
in vec2 texCoord0; | ||
|
||
out vec4 outColor; | ||
|
||
uniform sampler2D diffuse; | ||
uniform sampler2D layer; | ||
uniform sampler2D mask; | ||
|
||
uniform sampler2D lightmap; | ||
uniform ivec2 light; | ||
|
||
//base | ||
uniform vec3 baseColor1; | ||
uniform vec3 baseColor2; | ||
uniform vec3 baseColor3; | ||
uniform vec3 baseColor4; | ||
uniform vec3 baseColor5; | ||
|
||
//emi | ||
uniform vec3 emiColor1; | ||
uniform vec3 emiColor2; | ||
uniform vec3 emiColor3; | ||
uniform vec3 emiColor4; | ||
uniform vec3 emiColor5; | ||
uniform float emiIntensity1; | ||
uniform float emiIntensity2; | ||
uniform float emiIntensity3; | ||
uniform float emiIntensity4; | ||
uniform float emiIntensity5; | ||
|
||
vec4 adjust(vec4 color) { | ||
color.r = clamp(color.r * 2, 0.0, 1.0); | ||
color.g = clamp(color.g * 2, 0.0, 1.0); | ||
color.b = clamp(color.b * 2, 0.0, 1.0); | ||
color.a = clamp(color.a * 2, 0.0, 1.0); | ||
|
||
return color; | ||
} | ||
|
||
vec3 emission(vec3 base, vec3 emissionColor, float intensity) { | ||
return base + (emissionColor - base) * intensity; | ||
} | ||
|
||
vec4 getColor() { | ||
vec3 color = texture(diffuse, texCoord0).xyz; | ||
vec4 layerMasks = adjust(texture(layer, texCoord0)); | ||
vec4 maskColor = adjust(texture(mask, texCoord0)); | ||
|
||
vec3 base = mix(color, color * baseColor1, layerMasks.r); | ||
base = mix(base, color * baseColor2, layerMasks.g); | ||
base = mix(base, color * baseColor3, layerMasks.b); | ||
base = mix(base, color * baseColor4, layerMasks.a); | ||
base = mix(base, color * baseColor5, maskColor.r); | ||
|
||
base = mix(base, emission(base, emiColor1, emiIntensity1), layerMasks.r); | ||
base = mix(base, emission(base, emiColor2, emiIntensity2), layerMasks.g); | ||
base = mix(base, emission(base, emiColor3, emiIntensity3), layerMasks.b); | ||
base = mix(base, emission(base, emiColor4, emiIntensity4), layerMasks.a); | ||
base = mix(base, emission(base, emiColor5, emiIntensity5), maskColor.r); | ||
|
||
return vec4(base, 1); | ||
} | ||
|
||
vec4 minecraft_sample_lightmap(sampler2D lightMap, ivec2 uv) { | ||
return texture(lightMap, clamp(uv / 256.0, vec2(0.5 / 16.0), vec2(15.5 / 16.0))); | ||
} | ||
|
||
void main() { | ||
vec4 color = getColor(); | ||
vec4 lightColor = minecraft_sample_lightmap(lightmap, light); | ||
|
||
if(color.a < 0.1) { | ||
discard; | ||
} | ||
|
||
outColor = color * lightColor; | ||
} |
18 changes: 18 additions & 0 deletions
18
common/src/main/resources/assets/generations_core/shaders/block/unlit.fs.glsl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#version 330 core | ||
|
||
in vec2 texCoord0; | ||
|
||
out vec4 outColor; | ||
|
||
uniform sampler2D diffuse; | ||
|
||
|
||
void main() { | ||
vec4 color = texture(diffuse, texCoord0); | ||
|
||
if(color.a < 0.1) { | ||
discard; | ||
} | ||
|
||
outColor = color; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -360,7 +360,7 @@ | |
] | ||
} | ||
], | ||
"baseScale": 0.5, | ||
"baseScale": 1, | ||
"hitbox": { | ||
"width": 0.8, | ||
"height": 1, | ||
|
Binary file removed
BIN
-3.56 MB
...epacks/smooth_pokemon/assets/generations_core/bedrock/pokemon/models/articuno-galarian.pk
Binary file not shown.
Binary file removed
BIN
-3.24 MB
...s/resourcepacks/smooth_pokemon/assets/generations_core/bedrock/pokemon/models/articuno.pk
Binary file not shown.
Binary file removed
BIN
-2.53 MB
.../resourcepacks/smooth_pokemon/assets/generations_core/bedrock/pokemon/models/charizard.pk
Binary file not shown.
Binary file removed
BIN
-6.88 MB
...es/resourcepacks/smooth_pokemon/assets/generations_core/bedrock/pokemon/models/pikachu.pk
Binary file not shown.
Binary file removed
BIN
-7.18 MB
...cepacks/smooth_pokemon/assets/generations_core/bedrock/pokemon/models/pikachu_with_cap.pk
Binary file not shown.
Binary file added
BIN
+1.69 MB
...ourcepacks/smooth_pokemon/assets/generations_core/bedrock/pokemon/models/wooper_female.pk
Binary file not shown.
Binary file added
BIN
+1.82 MB
...esourcepacks/smooth_pokemon/assets/generations_core/bedrock/pokemon/models/wooper_male.pk
Binary file not shown.
Binary file added
BIN
+1.01 MB
...urcepacks/smooth_pokemon/assets/generations_core/bedrock/pokemon/models/wooper_paldean.pk
Binary file not shown.
85 changes: 0 additions & 85 deletions
85
...acks/smooth_pokemon/assets/generations_core/bedrock/pokemon/posers/articuno-galarian.json
This file was deleted.
Oops, something went wrong.
85 changes: 0 additions & 85 deletions
85
...resourcepacks/smooth_pokemon/assets/generations_core/bedrock/pokemon/posers/articuno.json
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.