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 GpuBufferstatic final ResourceLocationprivate static final intprivate final GpuBufferprivate static final ResourceLocationprivate static final floatprivate static final intprivate static final intprivate final GpuBufferprivate intprivate final RenderSystem.AutoStorageIndexBufferprivate static final ResourceLocationprivate final GpuBuffer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static GpuBufferprivate voidbuildSkyDisc(VertexConsumer buffer, float y) private GpuBuffervoidclose()voidvoidprivate voidrenderMoon(int phase, float alpha, MultiBufferSource bufferSource, PoseStack poseStack) voidrenderSkyDisc(float red, float green, float blue) private voidrenderStars(FogParameters fog, float starBrightness, PoseStack poseStack) private voidrenderSun(float alpha, MultiBufferSource bufferSource, PoseStack poseStack) voidrenderSunMoonAndStars(PoseStack poseStack, MultiBufferSource.BufferSource bufferSource, float timeOfDay, int moonPhase, float rainLevel, float starBrightness, FogParameters fog) voidrenderSunriseAndSunset(PoseStack poseStack, MultiBufferSource.BufferSource bufferSource, float sunAngle, int color)
-
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 red, float green, float blue) -
renderDarkDisc
public void renderDarkDisc() -
renderSunMoonAndStars
public void renderSunMoonAndStars(PoseStack poseStack, MultiBufferSource.BufferSource bufferSource, float timeOfDay, int moonPhase, float rainLevel, float starBrightness, FogParameters fog) -
renderSun
-
renderMoon
private void renderMoon(int phase, float alpha, MultiBufferSource bufferSource, PoseStack poseStack) -
renderStars
-
renderSunriseAndSunset
public void renderSunriseAndSunset(PoseStack poseStack, MultiBufferSource.BufferSource bufferSource, float sunAngle, int color) -
buildEndSky
-
renderEndSky
public void renderEndSky() -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-