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 GpuBufferprivate final TextureAtlasprivate static final floatprivate static final floatprivate static final Identifierprivate static final Identifierprivate static final intprivate final GpuBufferprivate final GpuBufferprivate final AbstractTextureprivate static final floatprivate static final floatprivate final GpuBufferprivate final RenderSystem.AutoStorageIndexBufferprivate static final floatprivate static final intprivate static final intprivate final GpuBufferprivate intprivate static final floatprivate static final floatprivate static final Identifierprivate final GpuBufferprivate static final intprivate final GpuBufferprivate final GpuBuffer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static GpuBufferbuildCelestialQuad(String pName, TextureAtlasSprite pAtlas) private static GpuBufferbuildEndFlashQuad(TextureAtlas pAtlas) private static GpuBufferprivate static GpuBufferbuildMoonPhases(TextureAtlas pAtlas) private voidbuildSkyDisc(VertexConsumer pBuffer, float pY) private GpuBufferprivate static GpuBufferbuildSunQuad(TextureAtlas pAtlas) private GpuBuffervoidclose()voidextractRenderState(ClientLevel pLevel, float pPartialTick, Camera pCamera, SkyRenderState pReusedState) private AbstractTexturegetTexture(TextureManager pTextureManager, Identifier pTexture) voidvoidrenderEndFlash(PoseStack pPoseStack, float pIntensity, float pXAngle, float pYAngle) voidprivate voidrenderMoon(MoonPhase pMoonPhase, float pRainBrightness, PoseStack pPoseStack) voidrenderSkyDisc(int pColor) private voidrenderStars(float pStarBrightness, PoseStack pPoseStack) private voidvoidrenderSunMoonAndStars(PoseStack pPoseStack, float pSunAngle, float pMoonAngle, float pStarAngle, MoonPhase pMoonPhase, float pRainBrightness, float pStarBrightness) voidrenderSunriseAndSunset(PoseStack pPoseStack, float pSunAngle, int pColor) private booleanshouldRenderDarkDisc(float pPartialTick, ClientLevel pLevel)
-
Field Details
-
SUN_SPRITE
-
END_FLASH_SPRITE
-
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:
-
SUN_SIZE
private static final float SUN_SIZE- See Also:
-
SUN_HEIGHT
private static final float SUN_HEIGHT- See Also:
-
MOON_SIZE
private static final float MOON_SIZE- See Also:
-
MOON_HEIGHT
private static final float MOON_HEIGHT- See Also:
-
SUNRISE_STEPS
private static final int SUNRISE_STEPS- See Also:
-
END_SKY_QUAD_COUNT
private static final int END_SKY_QUAD_COUNT- See Also:
-
END_FLASH_HEIGHT
private static final float END_FLASH_HEIGHT- See Also:
-
END_FLASH_SCALE
private static final float END_FLASH_SCALE- See Also:
-
celestialsAtlas
-
starBuffer
-
topSkyBuffer
-
bottomSkyBuffer
-
endSkyBuffer
-
sunBuffer
-
moonBuffer
-
sunriseBuffer
-
endFlashBuffer
-
quadIndices
-
endSkyTexture
-
starIndexCount
private int starIndexCount
-
-
Constructor Details
-
SkyRenderer
-
-
Method Details
-
getTexture
-
buildSunriseFan
-
buildSunQuad
-
buildEndFlashQuad
-
buildCelestialQuad
-
buildMoonPhases
-
buildStars
-
buildSkyDisc
-
buildEndSky
-
renderSkyDisc
public void renderSkyDisc(int pColor) -
extractRenderState
public void extractRenderState(ClientLevel pLevel, float pPartialTick, Camera pCamera, SkyRenderState pReusedState) -
shouldRenderDarkDisc
-
renderDarkDisc
public void renderDarkDisc() -
renderSunMoonAndStars
-
renderSun
-
renderMoon
-
renderStars
-
renderSunriseAndSunset
-
renderEndSky
public void renderEndSky() -
renderEndFlash
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-