Class WeatherEffectRenderer
java.lang.Object
net.minecraft.client.renderer.WeatherEffectRenderer
- All Implemented Interfaces:
AutoCloseable
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final float[]private final float[]private final GameRendererprivate static final intprivate intprivate static final intprivate @Nullable PrimitiveTopologyprivate static final Identifierprivate static final intprivate @Nullable AbstractTextureprivate static final Identifierprivate @Nullable AbstractTextureprivate final TextureManager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()createRainColumnInstance(RandomSource random, long ticks, int x, int bottomY, int topY, int z, int lightCoords, float partialTicks) createSnowColumnInstance(RandomSource random, long ticks, int x, int bottomY, int topY, int z, int lightCoords, float partialTicks) voidextractRenderState(ClientLevel level, float partialTicks, Vec3 cameraPos, WeatherRenderState renderState) voidprepare(Vec3 cameraPos, WeatherRenderState renderState) private voidprepareInstances(VertexConsumer builder, List<WeatherEffectRenderer.ColumnInstance> columns, Vec3 cameraPos, float maxAlpha, int radius, float intensity) voidrender(WeatherRenderState renderState, RenderPass renderPass) private voidrender(WeatherRenderState renderState, RenderPass renderPass, RenderPipeline renderPipeline) voidrenderOit(OitStage stage, WeatherRenderState renderState, RenderPass renderPass) private voidrenderWeather(RenderPass renderPass, AbstractTexture texture, int startColumn, int columnCount) private voiduploadVertexBuffer(ByteBuffer buffer)
-
Field Details
-
RAIN_LOCATION
-
SNOW_LOCATION
-
RAIN_TABLE_SIZE
private static final int RAIN_TABLE_SIZE- See Also:
-
HALF_RAIN_TABLE_SIZE
private static final int HALF_RAIN_TABLE_SIZE- See Also:
-
INDICES_PER_COLUMN
private static final int INDICES_PER_COLUMN- See Also:
-
columnSizeX
private final float[] columnSizeX -
columnSizeZ
private final float[] columnSizeZ -
gameRenderer
-
textureManager
-
rainTexture
-
snowTexture
-
vertexBuffer
-
primitiveTopology
-
indexCount
private int indexCount
-
-
Constructor Details
-
WeatherEffectRenderer
public WeatherEffectRenderer()
-
-
Method Details
-
extractRenderState
public void extractRenderState(ClientLevel level, float partialTicks, Vec3 cameraPos, WeatherRenderState renderState) -
renderWeather
private void renderWeather(RenderPass renderPass, AbstractTexture texture, int startColumn, int columnCount) -
uploadVertexBuffer
-
prepare
-
render
-
renderOit
-
render
private void render(WeatherRenderState renderState, RenderPass renderPass, RenderPipeline renderPipeline) -
createRainColumnInstance
private WeatherEffectRenderer.ColumnInstance createRainColumnInstance(RandomSource random, long ticks, int x, int bottomY, int topY, int z, int lightCoords, float partialTicks) -
createSnowColumnInstance
private WeatherEffectRenderer.ColumnInstance createSnowColumnInstance(RandomSource random, long ticks, int x, int bottomY, int topY, int z, int lightCoords, float partialTicks) -
prepareInstances
private void prepareInstances(VertexConsumer builder, List<WeatherEffectRenderer.ColumnInstance> columns, Vec3 cameraPos, float maxAlpha, int radius, float intensity) -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-