Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
CreatureChat
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
Public
CreatureChat
Commits
fd4e2200
Commit
fd4e2200
authored
Apr 29, 2024
by
Jonathan Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding hat layer to render player pipeline
parent
367736eb
Pipeline
#12058
passed with stage
in 20 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
BubbleRenderer.java
src/client/java/com/owlmaddie/ui/BubbleRenderer.java
+15
-2
No files found.
src/client/java/com/owlmaddie/ui/BubbleRenderer.java
View file @
fd4e2200
...
...
@@ -186,14 +186,27 @@ public class BubbleRenderer {
float
v1
=
8.0
F
/
textureHeight
;
float
u2
=
16.0
F
/
textureWidth
;
float
v2
=
16.0
F
/
textureHeight
;
float
z
=
-
0.01
F
;
// Draw face
bufferBuilder
.
vertex
(
matrices
.
peek
().
getPositionMatrix
(),
x
,
y
+
height
,
z
).
texture
(
u1
,
v2
).
next
();
// bottom left
bufferBuilder
.
vertex
(
matrices
.
peek
().
getPositionMatrix
(),
x
+
width
,
y
+
height
,
z
).
texture
(
u2
,
v2
).
next
();
// bottom right
bufferBuilder
.
vertex
(
matrices
.
peek
().
getPositionMatrix
(),
x
+
width
,
y
,
z
).
texture
(
u2
,
v1
).
next
();
// top right
bufferBuilder
.
vertex
(
matrices
.
peek
().
getPositionMatrix
(),
x
,
y
,
z
).
texture
(
u1
,
v1
).
next
();
// top left
tessellator
.
draw
();
// Coordinates for the hat (overlay)
float
hatU1
=
40.0
F
/
textureWidth
;
float
hatV1
=
8.0
F
/
textureHeight
;
float
hatU2
=
48.0
F
/
textureWidth
;
float
hatV2
=
16.0
F
/
textureHeight
;
// Draw hat (overlay)
bufferBuilder
.
vertex
(
matrices
.
peek
().
getPositionMatrix
(),
x
,
y
+
height
,
z
).
texture
(
hatU1
,
hatV2
).
next
();
bufferBuilder
.
vertex
(
matrices
.
peek
().
getPositionMatrix
(),
x
+
width
,
y
+
height
,
z
).
texture
(
hatU2
,
hatV2
).
next
();
bufferBuilder
.
vertex
(
matrices
.
peek
().
getPositionMatrix
(),
x
+
width
,
y
,
z
).
texture
(
hatU2
,
hatV1
).
next
();
bufferBuilder
.
vertex
(
matrices
.
peek
().
getPositionMatrix
(),
x
,
y
,
z
).
texture
(
hatU1
,
hatV1
).
next
();
tessellator
.
draw
();
RenderSystem
.
disableBlend
();
RenderSystem
.
disableDepthTest
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment