Camera projection (#2532)

Signed-off-by: liach <liach@users.noreply.github.com>

Co-authored-by: liach <liach@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
liach 2021-07-05 10:32:18 -05:00 committed by GitHub
parent 7d14ba4a2f
commit 7c2336e817
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 34 additions and 5 deletions

View File

@ -48,3 +48,28 @@ CLASS net/minecraft/class_4184 net/minecraft/client/render/Camera
METHOD method_19337 reset ()V
METHOD method_23767 getRotation ()Lnet/minecraft/class_1158;
METHOD method_35689 getDiagonalPlane ()Lnet/minecraft/class_1160;
METHOD method_36425 getProjection ()Lnet/minecraft/class_4184$class_6355;
COMMENT {@return the field of vision of this camera}
COMMENT
COMMENT @see GameRenderer#CAMERA_DEPTH
COMMENT @see net.minecraft.util.math.Matrix4f#viewboxMatrix
CLASS class_6355 Projection
COMMENT A projection of a camera. It is a 2-D rectangle in a 3-D volume.
COMMENT
COMMENT @see Camera#getProjection()
FIELD field_33622 center Lnet/minecraft/class_243;
FIELD field_33623 x Lnet/minecraft/class_243;
COMMENT Half of the width (x) of the rectangle.
FIELD field_33624 y Lnet/minecraft/class_243;
COMMENT Half of the height (y) of the rectangle.
METHOD <init> (Lnet/minecraft/class_243;Lnet/minecraft/class_243;Lnet/minecraft/class_243;)V
ARG 1 center
ARG 2 x
ARG 3 y
METHOD method_36426 getBottomRight ()Lnet/minecraft/class_243;
METHOD method_36427 getPosition (FF)Lnet/minecraft/class_243;
ARG 1 factorX
ARG 2 factorY
METHOD method_36429 getTopRight ()Lnet/minecraft/class_243;
METHOD method_36430 getBottomLeft ()Lnet/minecraft/class_243;
METHOD method_36431 getTopLeft ()Lnet/minecraft/class_243;

View File

@ -1,6 +1,4 @@
CLASS net/minecraft/class_5636 net/minecraft/client/render/CameraSubmersionType
COMMENT This class contains the various "fluids" and is used for camera rendering. @see Camera.getSubmersionType
FIELD field_27885 LAVA Lnet/minecraft/class_5636;
FIELD field_27886 WATER Lnet/minecraft/class_5636;
FIELD field_27887 POWDER_SNOW Lnet/minecraft/class_5636;
FIELD field_27888 NONE Lnet/minecraft/class_5636;
COMMENT This class contains the various "fluids" and is used for camera rendering.
COMMENT
COMMENT @see Camera#getSubmersionType()

View File

@ -57,6 +57,12 @@ CLASS net/minecraft/class_757 net/minecraft/client/render/GameRenderer
FIELD field_29401 renderTypeGlintShader Lnet/minecraft/class_5944;
FIELD field_29402 renderTypeGlintDirectShader Lnet/minecraft/class_5944;
FIELD field_29403 blitScreenShader Lnet/minecraft/class_5944;
FIELD field_32686 CAMERA_DEPTH F
COMMENT Since the camera is conceptualized as a single point, a depth of {@value}
COMMENT blocks is used to define a rectangular area to be rendered.
COMMENT
COMMENT @see Camera#getProjection()
COMMENT @see Matrix4f#viewboxMatrix
FIELD field_33626 renderTypeTextIntensityShader Lnet/minecraft/class_5944;
FIELD field_33627 renderTypeTextIntensitySeeThroughShader Lnet/minecraft/class_5944;
FIELD field_34055 hasWorldIcon Z