Skip to content

Commit

Permalink
New translations basic-concepts.md (Spanish)
Browse files Browse the repository at this point in the history
  • Loading branch information
FabricMCBot committed Feb 12, 2024
1 parent c70cedd commit 4b2950a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions translated/es_es/develop/rendering/basic-concepts.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,15 @@ We're going to draw vertices at the following points on the HUD (in order):

This should give us a lovely diamond - since we're using the `TRIANGLE_STRIP` draw mode, the renderer will perform the following steps:

![Four steps that show the placement of the vertices on the screen to form two triangles.](../../assets/develop/rendering/concepts-practical-example-draw-process.png)
![Four steps that show the placement of the vertices on the screen to form two triangles.](/assets/develop/rendering/concepts-practical-example-draw-process.png)

Since we're drawing on the HUD in this example, we'll use the `HudRenderCallback` event:

@[code lang=java transcludeWith=:::1](@/reference/latest/src/client/java/com/example/docs/rendering/RenderingConceptsEntrypoint.java)

This results in the following being drawn on the HUD:

![Final Result](../../assets/develop/rendering/concepts-practical-example-final-result.png)
![Final Result](/assets/develop/rendering/concepts-practical-example-final-result.png)

:::tip
Try mess around with the colors and positions of the vertices to see what happens! You can also try using different draw modes and vertex formats.
Expand Down Expand Up @@ -145,7 +145,7 @@ Make sure to push the matrix stack before you get a transformation matrix!

@[code lang=java transcludeWith=:::2](@/reference/latest/src/client/java/com/example/docs/rendering/RenderingConceptsEntrypoint.java)

![A video showing the diamond scaling up and down.](../../assets/develop/rendering/concepts-matrix-stack.webp)
![A video showing the diamond scaling up and down.](/assets/develop/rendering/concepts-matrix-stack.webp)

## Quaternions (Rotating Things)

Expand All @@ -159,4 +159,4 @@ Let's say we want to rotate our diamond around the z-axis. We can do this by usi

The result of this is the following:

![A video showing the diamond rotating around the z-axis.](../../assets/develop/rendering/concepts-quaternions.webp)
![A video showing the diamond rotating around the z-axis.](/assets/develop/rendering/concepts-quaternions.webp)

0 comments on commit 4b2950a

Please sign in to comment.