# PBR Model

This model represents a material that provides a more realistic quality to objects, using physically based rendering. It allows for selecting and editing:

* `Environment Mapping`
* `Normal Mapping`
* `Albedo Texture`, `Color`, and `Blending`
* `Specular Color`
* as well as adjusting `Metalicness`, `Shadow Senstivity`, and `Roughness`.

All these **Attributes** are described in greater detail below.

![](https://2628349686-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fwnv17cpjDin2deSlOz0z%2Fuploads%2Fgit-blob-e7bbc099eb37ad46feee66ec4af8a24f13b19234%2Fpbrmodelmat1.png?alt=media)

## Attributes

### Material

![Material](https://2628349686-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fwnv17cpjDin2deSlOz0z%2Fuploads%2Fgit-blob-72eed679931aeea1fe9e761296c8bdc03299473d%2Fpbrmodelmat2.png?alt=media)

This **Attribute** provides the `Name` of the **Material** as well as the `Shading model` type. It also sets the `Alpha` value if it is toggled on.

The `Alpha` channel is additional to the RGB channels and adds a kind of transparency to the object by mixing the background and foreground colors. For example, if the `Alpha` value is set to 0.5, then this would result in a 50% mix of the object and its background, providing a somewhat see-through quality.

### Environment Map

![Environment Map](https://2628349686-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fwnv17cpjDin2deSlOz0z%2Fuploads%2Fgit-blob-ba415b3ea84a93422bedd94389a21816d7a8f001%2Fpbrmodelmat3.png?alt=media)

This enables the user to set a `Texture` which reflects the environment around an **Object**, meaning that the **Object** reflects the surface surrounding it (whether that be the background, another **Object**, or both combined.).

`U offset (deg)` sets the beginning of the image of the provided `Texture` to be "delayed" in the x or direction, moving it from left to right. The resulting "cut off" piece wraps around to the start of the image.

`V offset (deg)` sets the beginning of the image of the provided `Texture` to be "delayed" in the y or direction, moving it from bottom to top. The resulting "cut off" piece wraps around to the start of the image.

### Normals

![Normals](https://2628349686-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fwnv17cpjDin2deSlOz0z%2Fuploads%2Fgit-blob-8ce1d8aa85699787add868184162bef2a886a706%2Fpbrmodel4real.png?alt=media)

A normal is a line perpendicular to the surface of some object. *Normal mapping* distorts these normals and simulates a surface with light and shadow, even if the object surface itself is flat. This is only possible with a light source. The `Normal Map` sets this surface and `Use Normal Map` toggles it on and off.

### Albedo

![Albedo](https://2628349686-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fwnv17cpjDin2deSlOz0z%2Fuploads%2Fgit-blob-3e170251d2581cecdc1460b6e5621e9dfdc543c5%2Fpbrmodel6.png?alt=media)

`Color` of `Albedo` sets the base diffuse color of the model.

`Texture` takes any image to add any desired visual information.

Using `Blending`, the `Texture` and `Color` are combined. If `Blending` is set to 1 then 100% of the `Texture` is displayed on the **Object**. If 0.5, then it displays a 50/50 ratio of `Texture` and `Color`.

### Specular

![Specular](https://2628349686-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fwnv17cpjDin2deSlOz0z%2Fuploads%2Fgit-blob-0a394fd8f997b94c2a2ad8fa9f3a2c17a1370d17%2Fpbrmodel7.png?alt=media)

`Specular` is the point of reflection of the light source. `Color` sets the color of it.

### Tweak

![Tweak](https://2628349686-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fwnv17cpjDin2deSlOz0z%2Fuploads%2Fgit-blob-338532ba083d8e7f74ec6f5dbab601522a9a243c%2Fpbrmodelmat4.png?alt=media)

`Metallic` determines how much the surface simulates a metal-like quality, appearing shinier and harder or rougher and duller.

`Roughness` determines how rough an object is, limiting or strengthening reflectivity.

`Shadow sensitivity` determines the percentage of influence by the shadow. For example, a 1 would set an **Object's** surface to completely black. 0.5 would mean that even if the **Object** is in shadow, it would still have 50% of its color.
