Package net.minecraft.client.renderer
Class SkyRenderer
java.lang.Object
net.minecraft.client.renderer.SkyRenderer
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final GpuBuffer
static final ResourceLocation
private static final int
private final GpuBuffer
private static final ResourceLocation
private static final float
private static final int
private static final int
private final GpuBuffer
private int
private final RenderSystem.AutoStorageIndexBuffer
private static final ResourceLocation
private final GpuBuffer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static GpuBuffer
private void
buildSkyDisc
(VertexConsumer p_382865_, float p_361373_) private GpuBuffer
void
close()
void
void
private void
renderMoon
(int p_364754_, float p_362497_, MultiBufferSource p_382845_, PoseStack p_362676_) void
renderSkyDisc
(float p_362027_, float p_360898_, float p_362939_) private void
renderStars
(FogParameters p_365253_, float p_361150_, PoseStack p_365236_) private void
renderSun
(float p_362331_, MultiBufferSource p_383061_, PoseStack p_361665_) void
renderSunMoonAndStars
(PoseStack p_363513_, MultiBufferSource.BufferSource p_382843_, float p_362201_, int p_362572_, float p_362569_, float p_363542_, FogParameters p_361918_) void
renderSunriseAndSunset
(PoseStack p_362809_, MultiBufferSource.BufferSource p_383216_, float p_364108_, int p_361766_)
-
Field Details
-
SUN_LOCATION
-
MOON_LOCATION
-
END_SKY_LOCATION
-
SKY_DISC_RADIUS
private static final float SKY_DISC_RADIUS- See Also:
-
SKY_VERTICES
private static final int SKY_VERTICES- See Also:
-
STAR_COUNT
private static final int STAR_COUNT- See Also:
-
END_SKY_QUAD_COUNT
private static final int END_SKY_QUAD_COUNT- See Also:
-
starBuffer
-
starIndices
-
topSkyBuffer
-
bottomSkyBuffer
-
endSkyBuffer
-
starIndexCount
private int starIndexCount
-
-
Constructor Details
-
SkyRenderer
public SkyRenderer()
-
-
Method Details
-
buildStars
-
buildSkyDisc
-
renderSkyDisc
public void renderSkyDisc(float p_362027_, float p_360898_, float p_362939_) -
renderDarkDisc
public void renderDarkDisc() -
renderSunMoonAndStars
public void renderSunMoonAndStars(PoseStack p_363513_, MultiBufferSource.BufferSource p_382843_, float p_362201_, int p_362572_, float p_362569_, float p_363542_, FogParameters p_361918_) -
renderSun
-
renderMoon
private void renderMoon(int p_364754_, float p_362497_, MultiBufferSource p_382845_, PoseStack p_362676_) -
renderStars
-
renderSunriseAndSunset
public void renderSunriseAndSunset(PoseStack p_362809_, MultiBufferSource.BufferSource p_383216_, float p_364108_, int p_361766_) -
buildEndSky
-
renderEndSky
public void renderEndSky() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-