# Grip Material

The GRIP Mtl is a versatile, multi-layer shader designed to help you create a wide variety of realistic materials. It is based on the Disney Principled model (also known as the "PBR" shader), making it compatible with many different rendering engines.

This shader includes several layers, allowing you to simulate anything from metals to fabrics. The base layer can be customized as a mix of dielectric, metal, subsurface scattering, and transmission. Additional layers, like specular, flakes, sheen, and clearcoat, add depth and complexity to your material.

![Grip Material layers](images/diagram_model.svg)

## Current implementations

- Blender 5.x (Cycles)
- Autodesk 3ds Max 2024/2025 (VRay)

Please see the [DCC implementations](dcc.md) for more information.

## Key Features

- **Base Color/Reflectivity**: Defines the base color for dielectrics and the reflectivity (f0 color) for metals.
- **Diffuse Roughness**: Controls roughness for diffuse surfaces. Useful for creating materials like plaster or concrete.
- **Roughness**: Sets the microfacet roughness for GGX reflection, controlling the glossiness of the surface.
- **IOR**: Specifies the Index of Refraction for both refraction and reflection, crucial for transparent materials like glass.
- **Normal Map**: Adds surface details like bumps or wrinkles using OpenGL implementation.
- **Opacity**: Controls the overall transparency of the material.
- **Metalness**: Blends between dielectric and metal material types.
- **Specular**: Controls the strength of reflections. Generally set to 1 for most surfaces, with adjustments made to IOR for reducing reflection.

## Advanced Features
- **Specular Color/Edge Tint**: Adjusts the color of reflections and edge tints for metallic surfaces.
- **Specular Anisotropy and Rotation**: Create elongated highlights, perfect for brushed metals.
- **Thin Film**: Adjusts thin film IOR and thickness to simulate iridescence effects.
- **Transmission**: Controls the blend of transmission (glassiness) and underlying layers, with options for color tinting and depth.
- **Subsurface Scattering (SSS)**: Simulates light passing through the material, which is ideal for skin, wax, and other translucent materials. Control color, radius, and scattering properties.
- **Sheen Layer**: Adds highlights at grazing angles, which is especially useful for fabrics like velvet.
- **Flake Layer**: Adds metallic flakes to your material, with controls for size, coverage, and reflectivity—great for car paints and other sparkly materials.
- **Clearcoat Layer**: Adds a glossy, protective layer on top of your material. Useful for automotive paint or polished surfaces.
- **Emission**: Enables the material to emit light, which is perfect for creating glowing effects.

## How It Works
The GRIP Mtl shader is based on a physically accurate model and uses a layered approach to recreate complex material behaviors seen in real-world objects.

The shader stack includes multiple components, each representing different aspects of material appearance, such as metallic reflection, dielectric refraction, or subsurface scattering. Each component is combined using energy-conserving methods to ensure realistic results.

The shader uses a layered mixture model, allowing light to interact with different layers of the material, including reflections, transmission, and subsurface scattering. This interaction creates effects such as color tinting, depth variation, and angle-dependent transparency.

### Base Layer: Color, Roughness, and IOR

The Base Layer forms the foundation of the material, determining its basic optical properties, including color, roughness, and refraction characteristics.

- **Base Color**: The fundamental color of the material, which can be either dielectric or metallic.
- **Roughness**: Controls the spread of reflections. Lower values produce sharp, mirror-like reflections, while higher values result in diffuse, blurry reflections.
- **IOR (Index of Refraction)**: Dictates how light is refracted through and reflected off the surface, important for transparent materials like glass or water.

The combination of these attributes helps create a material's overall look, ranging from glossy ceramics to rough concrete.

![Grip Material layers](images/blueplastic0000.png)

### Metal Layer: Reflectivity and Edge Tint
The Metal Layer in the GRIP Mtl shader allows for precise control over the metallic reflectivity and edge tint, which are critical for realistic metal rendering. Light reflecting off metallic surfaces follows Fresnel equations, which are typically controlled by the complex index of refraction parameters n and k. However, these parameters can be challenging for artists to manipulate directly.

To simplify this, the metal layer uses artist-friendly parameters:

- **Reflectivity (r)**: Defines how much light is reflected at normal incidence. It provides a straightforward way to control the base reflectance without dealing with complex indices. Reflectivity is defined in a range from 0 to 1.
- **Edge Tint (g)**: Controls the color bias of reflections as the viewing angle becomes more glancing. This parameter also ranges from 0 to 1, allowing artists to easily adjust the visual appearance of metals like gold, copper, or aluminum. Edge tint helps simulate the characteristic color shift seen in metals at grazing angles.

Together, these parameters allow for a more intuitive adjustment of metallic reflectivity, maintaining physically plausible results while being easy to use. The shader internally remaps these artist-friendly parameters to approximate the physically-based Fresnel equations, ensuring that changes are both predictable and consistent across different lighting conditions.

![Grip Material layers](images/brassmetal0000.png)

### Transmission Layer: Transparency and Scattering

The Transmission Layer allows for the simulation of transparent materials, such as glass or water.

- **Amount**: Defines the level of transparency. A higher value means more light passes through the material.
- **Depth**: Controls the depth in cm when the transmission color is reached. When set to 0, this layer will act like a colored refraction with no absorption.
- **Extra Roughness**: Represents an additional roughness parameter that is only realistic when set to 0. This value modifies the base roughness, either adding to or subtracting from it, to adjust the refraction GGX roughness.
- **Transmission Color**: Defines the absorption color of the transmitted light, which helps simulate tinted glass or colored liquids.
- **Scatter Color**: Controls the color of light as it scatters within the material, describing the amount of scattering through the brightness of the color, which is useful for frosted or diffusive transparent surfaces.

![Grip Material layers](images/liquidinglass0000.png)

### Subsurface Scattering Layer: Organic Materials

The Subsurface Scattering (SSS) Layer is essential for materials where light penetrates the surface and scatters, such as skin, wax, or jade.

- **Amount**: Controls the strength of the subsurface effect.
- **Color**: Defines the hue of the scattered light.
- **Radius**: Sets how far light travels within the material before scattering back out, and controls the penetration of the light as it scatters within the material, with brighter colors indicating more deeper penetration.

The SSS layer can help create convincing organic materials by accurately modeling how light interacts beneath the surface.

![Grip Material layers](images/wax0000.png)

### Sheen Layer: Fabric Highlights

The Sheen Layer adds a soft, fabric-like highlight at glancing angles, useful for materials like velvet or satin.

- **Amount**: Defines the strength of the sheen effect.
- **Color**: Determines the color of the sheen.
- **Roughness**: Adjusts the softness of the sheen highlights.

This layer is perfect for simulating the subtle highlights often seen in fabrics, enhancing realism in clothing or upholstery.

### Flake Layer: Sparkle and Depth

The Flake Layer adds depth and sparkle to materials by simulating tiny metallic or reflective flakes.

- **Blend**: Controls the density of flakes within the material.
- **Color**: Defines the color of the flakes.
- **Roughness**: Adjusts the overall GGX roughness of the flakes.
- **Coverage**: Sets the percentage of the surface covered by flakes.
- **Size**: Determines the size of individual flakes.

This layer is commonly used for automotive paints, glittery plastics, or any material that needs a sparkly effect.

### Clearcoat Layer: Glossy Finish

The Clearcoat Layer simulates a glossy, protective coating over the entire material, much like varnish on wood or the clear layer on automotive paint.

- **Amount**: Controls the strength of the clearcoat.
- **Roughness**: Defines how polished or rough the clearcoat appears.
- **IOR**: Determines the reflective quality of the clearcoat layer.

Adding a clearcoat layer can enhance the overall depth and realism of the material, providing a polished, finished appearance.

### Example Use Cases

- **Metallic Car Paint**: Set base color, enable flakes for sparkle, and add a clearcoat for a glossy finish.
- **Skin Material**: Use subsurface scattering with subtle color variation, and adjust roughness to achieve realistic highlights.
- **Fabric (Velvet)**: Enable sheen, and adjust sheen roughness to capture the characteristic highlights of fabric fibers.

The combination of layers gives you the flexibility to design materials that match the look and feel of anything you can imagine. Whether you're working on product visualization, character rendering, or environment design, GRIP Mtl provides the tools you need to create stunning visuals.

[More technical Information](technical.md)

[Available USD implementation](implementations.md)

```{toctree}
:hidden:

technical.md
implementations.md
dcc.md
```
