# \[WIP] 마인크래프트 블럭 만들기

![](/files/-MShGeAgkueOD9T1McVu)

![](/files/-MShGfZKfHFvYkw3yUjK)

![grass texture map](/files/-MShGSzNK4rb4oBbyyjQ)

![](/files/-MShGhqPRxgoM7abnZB2)

![](/files/-MShJrQdKPIbEtFp8WiP)

```

float textureCoords[] = {
    // (u, v), (u, v), (u, v) for a traingle
    0.0f, 0.3f, 0.0f, 0.6f, 1.0f, 0.6f, /* front  1st triangle */
    0.0f, 0.3f, 1.0f, 0.6f, 1.0f, 0.3f, /* front  2nd triangle */
    0.0f, 0.3f, 0.0f, 0.6f, 1.0f, 0.6f, /* right  1st triangle */
    0.0f, 0.3f, 1.0f, 0.6f, 1.0f, 0.3f, /* right  2nd triangle */
    0.0f, 0.3f, 0.0f, 0.6f, 1.0f, 0.6f, /* back   1st triangle */
    0.0f, 0.3f, 1.0f, 0.6f, 1.0f, 0.3f, /* back   2nd triangle */
    0.0f, 0.3f, 0.0f, 0.6f, 1.0f, 0.6f, /* left   1st triangle */
    0.0f, 0.3f, 1.0f, 0.6f, 1.0f, 0.3f, /* left   2nd triangle */
    0.0f, 0.0f, 0.0f, 0.3f, 1.0f, 0.3f, /* top    1st triangle */
    0.0f, 0.0f, 1.0f, 0.3f, 1.0f, 0.0f, /* top    2nd triangle */
    0.0f, 0.6f, 0.0f, 1.0f, 1.0f, 1.0f, /* bottom 1st triangle */
    0.0f, 0.6f, 1.0f, 1.0f, 1.0f, 0.6f, /* bottom 2nd triangle */
};
```

## Links

* <http://www.opengl-tutorial.org/kr/beginners-tutorials/tutorial-5-a-textured-cube/>
* <https://blog.daum.net/aero2k/84>
* <https://www.learnopengles.com/android-lesson-four-introducing-basic-texturing/>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://devlog.joonas.io/graphics/opengl/make-minecraft-cube.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
