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 pBuffer, float pY) private GpuBuffer
void
close()
void
void
private void
renderMoon
(int pPhase, float pAlpha, MultiBufferSource pBufferSource, PoseStack pPoseStack) void
renderSkyDisc
(float pRed, float pGreen, float pBlue) private void
renderStars
(float pStarBrightness, PoseStack pPoseStack) private void
renderSun
(float pAlpha, MultiBufferSource pBufferSource, PoseStack pPoseStack) void
renderSunMoonAndStars
(PoseStack pPoseStack, MultiBufferSource.BufferSource pBufferSource, float pTimeOfDay, int pMoonPhase, float pRainLevel, float pStarBrightness) void
renderSunriseAndSunset
(PoseStack pPoseStack, MultiBufferSource.BufferSource pBufferSource, float pSunAngle, int pColor)
-
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 pRed, float pGreen, float pBlue) -
renderDarkDisc
public void renderDarkDisc() -
renderSunMoonAndStars
public void renderSunMoonAndStars(PoseStack pPoseStack, MultiBufferSource.BufferSource pBufferSource, float pTimeOfDay, int pMoonPhase, float pRainLevel, float pStarBrightness) -
renderSun
-
renderMoon
private void renderMoon(int pPhase, float pAlpha, MultiBufferSource pBufferSource, PoseStack pPoseStack) -
renderStars
-
renderSunriseAndSunset
public void renderSunriseAndSunset(PoseStack pPoseStack, MultiBufferSource.BufferSource pBufferSource, float pSunAngle, int pColor) -
buildEndSky
-
renderEndSky
public void renderEndSky() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-