Skip to content

Commit

Permalink
Update 7-Textures.md
Browse files Browse the repository at this point in the history
  • Loading branch information
filln authored Nov 30, 2020
1 parent 57b8e8c commit c36fc1f
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions 7-Textures.md
Original file line number Diff line number Diff line change
@@ -1 +1,46 @@

<a name="7"></a>
<a name="textures"></a>
## 7. Textures

This section will focus on Texture assets and their internals.

### Sections

> 7.1 [Dimensions Are Powers of 2](#textures-dimension)
> 7.2 [Texture Density Should Be Uniform](#textures-dimension)
> 7.3 [Textures Should Be No Bigger than 8192](#textures-max-size)
> 7.4 [Correct Texture Groups](#textures-textures-group)
<a name="7.1"></a>
<a name="textures-dimensions"></a>
### 7.1 Dimensions Are Powers of 2

All textures, except for UI textures, must have its dimensions in multiples of powers of 2. Textures do not have to be square.

For example, `128x512`, `1024x1024`, `2048x1024`, `1024x2048`, `1x512`.

<a name="7.2"></a>
<a name="textures-density"></a>
### 7.2 Texture Density Should Be Uniform

All textures should be of a size appropriate for their standard use case. Appropriate texture density varies from project to project, but all textures within that project should have a consistent density.

For example, if a project's texture density is 8 pixel per 1 unit, a texture that is meant to be applied to a 100x100 unit cube should be 1024x1024, as that is the closest power of 2 that matches the project's texture density.

<a name="7.3"></a>
<a name="textures-max-size"></a>
### 7.3 Textures Should Be No Bigger than 8192

No texture should have a dimension that exceeds 8192 in size, unless you have a very explicit reason to do so. Often, using a texture this big is simply just a waste of resources.

<a name="7.4"></a>
<a name="textures-group"></a>
### 7.4 Textures Should Be Grouped Correctly

Every texture has a Texture Group property used for LODing, and this should be set correctly based on its use. For example, all UI textures should belong in the UI texture group.

**[⬆ Back to Top](#textures)**

0 comments on commit c36fc1f

Please sign in to comment.