forked from CosmoMyzrailGorynych/ue4-style-guide-rus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)** |