minecraft-src/net/minecraft/client/renderer/ShaderProgram.java
2025-07-04 02:00:41 +03:00

14 lines
520 B
Java

package net.minecraft.client.renderer;
import com.mojang.blaze3d.vertex.VertexFormat;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.resources.ResourceLocation;
@Environment(EnvType.CLIENT)
public record ShaderProgram(ResourceLocation configId, VertexFormat vertexFormat, ShaderDefines defines) {
public String toString() {
String string = this.configId + " (" + this.vertexFormat + ")";
return !this.defines.isEmpty() ? string + " with " + this.defines : string;
}
}