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 pBuffer, float pY) private GpuBuffervoidclose()voidvoidprivate voidrenderMoon(int pPhase, float pAlpha, MultiBufferSource pBufferSource, PoseStack pPoseStack) voidrenderSkyDisc(float pRed, float pGreen, float pBlue) private voidrenderStars(FogParameters pFog, float pStarBrightness, PoseStack pPoseStack) private voidrenderSun(float pAlpha, MultiBufferSource pBufferSource, PoseStack pPoseStack) voidrenderSunMoonAndStars(PoseStack pPoseStack, MultiBufferSource.BufferSource pBufferSource, float pTimeOfDay, int pMoonPhase, float pRainLevel, float pStarBrightness, FogParameters pFog) voidrenderSunriseAndSunset(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, FogParameters pFog) -
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:
closein interfaceAutoCloseable
-