9
0
mirror of https://github.com/Xiao-MoMi/Custom-Nameplates.git synced 2025-12-19 15:09:23 +00:00

update shaders

This commit is contained in:
XiaoMoMi
2024-04-22 01:14:48 +08:00
parent 6276d27d57
commit a8bc4d8de5
3 changed files with 9 additions and 3 deletions

View File

@@ -50,7 +50,7 @@ public class BackGroundText {
if (parsed.equals("")) return "";
int parsedWidth = FontUtils.getTextWidth(parsed);
String bg = FontUtils.surroundNameplateFont(backGround.getBackGroundImage(parsedWidth));
return (removeShadow ? "<#FFFEFD>" + bg + "</#FFFEFD>" : bg)+ parsed;
return (removeShadow ? "<#FDFEFF>" + bg + "</#FDFEFF>" : bg)+ parsed;
}
public static Builder builder() {

View File

@@ -7,7 +7,7 @@ plugins {
allprojects {
version = "2.3.3.8"
version = "2.3.3.9"
apply<JavaPlugin>()
apply(plugin = "java")

View File

@@ -523,13 +523,19 @@ public class ResourcePackManagerImpl implements ResourcePackManager {
" vertex.y += 1;\n" +
" vertex.x += 1;\n" +
" gl_Position = ProjMat * ModelViewMat * vertex;\n" +
" } else if (Color.xyz == vec3(253., 254., 255.) / 255.) {\n" +
" vertexColor = Color*texelFetch(Sampler2, UV2 / 16, 0);\n" +
" vertex.y += 1;\n" +
" vertex.x += 1;\n" +
" vertex.z -= 0.002;\n" +
" gl_Position = ProjMat * ModelViewMat * vertex;\n" +
" } else if (Color.xyz == vec3(254., 254., 254.) / 255.) {\n" +
" vertexColor = Color*texelFetch(Sampler2, UV2 / 16, 0);\n" +
" vertex.z -= 0.001;\n" +
" gl_Position = ProjMat * ModelViewMat * vertex;\n" +
" } else if (Color.xyz == vec3(253., 254., 254.) / 255.) {\n" +
" vertexColor = Color*texelFetch(Sampler2, UV2 / 16, 0);\n" +
" vertex.z -= 0.0011;\n" +
" vertex.z -= 0.0015;\n" +
" gl_Position = ProjMat * ModelViewMat * vertex;\n" +
" } else {\n" +
" vertexColor = Color*texelFetch(Sampler2, UV2 / 16, 0);\n" +