DefaultVertexFormat.java
com.mojang.blaze3d.vertex.DefaultVertexFormat
信息
- 全限定名:com.mojang.blaze3d.vertex.DefaultVertexFormat
- 类型:public class
- 包:com.mojang.blaze3d.vertex
- 源码路径:src/main/java/com/mojang/blaze3d/vertex/DefaultVertexFormat.java
- 起始行号:L7
- 职责:
TODO
字段/常量
-
EMPTY- 类型:
VertexFormat - 修饰符:
public static final - 源码定位:
L8 - 说明:
TODO
- 类型:
-
BLOCK- 类型:
VertexFormat - 修饰符:
public static final - 源码定位:
L9 - 说明:
TODO
- 类型:
-
ENTITY- 类型:
VertexFormat - 修饰符:
public static final - 源码定位:
L15 - 说明:
TODO
- 类型:
-
PARTICLE- 类型:
VertexFormat - 修饰符:
public static final - 源码定位:
L24 - 说明:
TODO
- 类型:
-
POSITION- 类型:
VertexFormat - 修饰符:
public static final - 源码定位:
L30 - 说明:
TODO
- 类型:
-
POSITION_COLOR- 类型:
VertexFormat - 修饰符:
public static final - 源码定位:
L31 - 说明:
TODO
- 类型:
-
POSITION_COLOR_NORMAL- 类型:
VertexFormat - 修饰符:
public static final - 源码定位:
L35 - 说明:
TODO
- 类型:
-
POSITION_COLOR_LIGHTMAP- 类型:
VertexFormat - 修饰符:
public static final - 源码定位:
L41 - 说明:
TODO
- 类型:
-
POSITION_TEX- 类型:
VertexFormat - 修饰符:
public static final - 源码定位:
L46 - 说明:
TODO
- 类型:
-
POSITION_TEX_COLOR- 类型:
VertexFormat - 修饰符:
public static final - 源码定位:
L50 - 说明:
TODO
- 类型:
-
POSITION_COLOR_TEX_LIGHTMAP- 类型:
VertexFormat - 修饰符:
public static final - 源码定位:
L55 - 说明:
TODO
- 类型:
-
POSITION_TEX_LIGHTMAP_COLOR- 类型:
VertexFormat - 修饰符:
public static final - 源码定位:
L61 - 说明:
TODO
- 类型:
-
POSITION_TEX_COLOR_NORMAL- 类型:
VertexFormat - 修饰符:
public static final - 源码定位:
L67 - 说明:
TODO
- 类型:
-
POSITION_COLOR_LINE_WIDTH- 类型:
VertexFormat - 修饰符:
public static final - 源码定位:
L74 - 说明:
TODO
- 类型:
-
POSITION_COLOR_NORMAL_LINE_WIDTH- 类型:
VertexFormat - 修饰符:
public static final - 源码定位:
L79 - 说明:
TODO
- 类型:
内部类/嵌套类型
- 无
构造器
- 无
方法
下面的方法块按源码顺序生成。
- 无
代码
@OnlyIn(Dist.CLIENT)
public class DefaultVertexFormat {
public static final VertexFormat EMPTY = VertexFormat.builder().build();
public static final VertexFormat BLOCK = VertexFormat.builder()
.add("Position", VertexFormatElement.POSITION)
.add("Color", VertexFormatElement.COLOR)
.add("UV0", VertexFormatElement.UV0)
.add("UV2", VertexFormatElement.UV2)
.build();
public static final VertexFormat 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();
public static final VertexFormat POSITION_COLOR_LINE_WIDTH = VertexFormat.builder()
.add("Position", VertexFormatElement.POSITION)
.add("Color", VertexFormatElement.COLOR)
.add("LineWidth", VertexFormatElement.LINE_WIDTH)
.build();
public static final VertexFormat POSITION_COLOR_NORMAL_LINE_WIDTH = VertexFormat.builder()
.add("Position", VertexFormatElement.POSITION)
.add("Color", VertexFormatElement.COLOR)
.add("Normal", VertexFormatElement.NORMAL)
.padding(1)
.add("LineWidth", VertexFormatElement.LINE_WIDTH)
.build();
}引用的其他类
- VertexFormat
- 引用位置:
字段/方法调用 - 关联成员:
VertexFormat.builder()
- 引用位置: