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:
@@ -50,7 +50,7 @@ public class BackGroundText {
|
|||||||
if (parsed.equals("")) return "";
|
if (parsed.equals("")) return "";
|
||||||
int parsedWidth = FontUtils.getTextWidth(parsed);
|
int parsedWidth = FontUtils.getTextWidth(parsed);
|
||||||
String bg = FontUtils.surroundNameplateFont(backGround.getBackGroundImage(parsedWidth));
|
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() {
|
public static Builder builder() {
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ plugins {
|
|||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
|
|
||||||
version = "2.3.3.8"
|
version = "2.3.3.9"
|
||||||
|
|
||||||
apply<JavaPlugin>()
|
apply<JavaPlugin>()
|
||||||
apply(plugin = "java")
|
apply(plugin = "java")
|
||||||
|
|||||||
@@ -523,13 +523,19 @@ public class ResourcePackManagerImpl implements ResourcePackManager {
|
|||||||
" vertex.y += 1;\n" +
|
" vertex.y += 1;\n" +
|
||||||
" vertex.x += 1;\n" +
|
" vertex.x += 1;\n" +
|
||||||
" gl_Position = ProjMat * ModelViewMat * vertex;\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" +
|
" } else if (Color.xyz == vec3(254., 254., 254.) / 255.) {\n" +
|
||||||
" vertexColor = Color*texelFetch(Sampler2, UV2 / 16, 0);\n" +
|
" vertexColor = Color*texelFetch(Sampler2, UV2 / 16, 0);\n" +
|
||||||
" vertex.z -= 0.001;\n" +
|
" vertex.z -= 0.001;\n" +
|
||||||
" gl_Position = ProjMat * ModelViewMat * vertex;\n" +
|
" gl_Position = ProjMat * ModelViewMat * vertex;\n" +
|
||||||
" } else if (Color.xyz == vec3(253., 254., 254.) / 255.) {\n" +
|
" } else if (Color.xyz == vec3(253., 254., 254.) / 255.) {\n" +
|
||||||
" vertexColor = Color*texelFetch(Sampler2, UV2 / 16, 0);\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" +
|
" gl_Position = ProjMat * ModelViewMat * vertex;\n" +
|
||||||
" } else {\n" +
|
" } else {\n" +
|
||||||
" vertexColor = Color*texelFetch(Sampler2, UV2 / 16, 0);\n" +
|
" vertexColor = Color*texelFetch(Sampler2, UV2 / 16, 0);\n" +
|
||||||
|
|||||||
Reference in New Issue
Block a user