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

2.2.3.1-hotfix

This commit is contained in:
XiaoMoMi
2023-07-10 01:41:14 +08:00
parent 5dd53236a3
commit a02ddddb8e
3 changed files with 3 additions and 4 deletions

View File

@@ -232,7 +232,7 @@ public class ResourceManager {
" }\n" +
" vertexColor = ((.6 + .6 * cos(6. * (gl_Position.x + GameTime * 1000.) + vec4(0, 23, 21, 1))) + vec4(0., 0., 0., 1.)) * texelFetch(Sampler2, UV2 / 16, 0);\n" +
" gl_Position = ProjMat * ModelViewMat * vertex;\n" +
" }")
" } else ")
);
} catch (IOException e) {

View File

@@ -22,8 +22,7 @@ void main(){
vec4 vertex = vec4(Position, 1.0);
vertexDistance = fog_distance(ModelViewMat, IViewRotMat * Position, FogShape);
texCoord0 = UV0;
{IA}
if (Color.xyz == vec3(255., 254., 253.) / 255.) {
{IA}if (Color.xyz == vec3(255., 254., 253.) / 255.) {
vertexColor = Color*texelFetch(Sampler2, UV2 / 16, 0);
vertex.y+= 1;
vertex.x+= 1;