Spaces:
Build error
Build error
File size: 3,580 Bytes
d46f4a3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
package com.mojang.blaze3d.vertex;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn;
@OnlyIn(Dist.CLIENT)
public class DefaultVertexFormat {
public static final VertexFormat BLIT_SCREEN = VertexFormat.builder().add("Position", VertexFormatElement.POSITION).build();
public static final VertexFormat BLOCK = VertexFormat.builder()
.add("Position", VertexFormatElement.POSITION)
.add("Color", VertexFormatElement.COLOR)
.add("UV0", VertexFormatElement.UV0)
.add("UV2", VertexFormatElement.UV2)
.add("Normal", VertexFormatElement.NORMAL)
.padding(1)
.build();
public static final VertexFormat NEW_ENTITY = VertexFormat.builder()
.add("Position", VertexFormatElement.POSITION)
.add("Color", VertexFormatElement.COLOR)
.add("UV0", VertexFormatElement.UV0)
.add("UV1", VertexFormatElement.UV1)
.add("UV2", VertexFormatElement.UV2)
.add("Normal", VertexFormatElement.NORMAL)
.padding(1)
.build();
public static final VertexFormat PARTICLE = VertexFormat.builder()
.add("Position", VertexFormatElement.POSITION)
.add("UV0", VertexFormatElement.UV0)
.add("Color", VertexFormatElement.COLOR)
.add("UV2", VertexFormatElement.UV2)
.build();
public static final VertexFormat POSITION = VertexFormat.builder().add("Position", VertexFormatElement.POSITION).build();
public static final VertexFormat POSITION_COLOR = VertexFormat.builder()
.add("Position", VertexFormatElement.POSITION)
.add("Color", VertexFormatElement.COLOR)
.build();
public static final VertexFormat POSITION_COLOR_NORMAL = VertexFormat.builder()
.add("Position", VertexFormatElement.POSITION)
.add("Color", VertexFormatElement.COLOR)
.add("Normal", VertexFormatElement.NORMAL)
.padding(1)
.build();
public static final VertexFormat POSITION_COLOR_LIGHTMAP = VertexFormat.builder()
.add("Position", VertexFormatElement.POSITION)
.add("Color", VertexFormatElement.COLOR)
.add("UV2", VertexFormatElement.UV2)
.build();
public static final VertexFormat POSITION_TEX = VertexFormat.builder()
.add("Position", VertexFormatElement.POSITION)
.add("UV0", VertexFormatElement.UV0)
.build();
public static final VertexFormat POSITION_TEX_COLOR = VertexFormat.builder()
.add("Position", VertexFormatElement.POSITION)
.add("UV0", VertexFormatElement.UV0)
.add("Color", VertexFormatElement.COLOR)
.build();
public static final VertexFormat POSITION_COLOR_TEX_LIGHTMAP = VertexFormat.builder()
.add("Position", VertexFormatElement.POSITION)
.add("Color", VertexFormatElement.COLOR)
.add("UV0", VertexFormatElement.UV0)
.add("UV2", VertexFormatElement.UV2)
.build();
public static final VertexFormat POSITION_TEX_LIGHTMAP_COLOR = VertexFormat.builder()
.add("Position", VertexFormatElement.POSITION)
.add("UV0", VertexFormatElement.UV0)
.add("UV2", VertexFormatElement.UV2)
.add("Color", VertexFormatElement.COLOR)
.build();
public static final VertexFormat POSITION_TEX_COLOR_NORMAL = VertexFormat.builder()
.add("Position", VertexFormatElement.POSITION)
.add("UV0", VertexFormatElement.UV0)
.add("Color", VertexFormatElement.COLOR)
.add("Normal", VertexFormatElement.NORMAL)
.padding(1)
.build();
} |