---
title: "Stochastic Flakes Layer"
canonical: "https://documentation.chaos.com/space/VRHINO/116130852/Stochastic+Flakes+Layer"
format: markdown
---
<span style="color: #172b4d">This page provides information about the Stochastic Flakes material in V-Ray for Rhino.</span>


## **Overview**<span style="color: #172b4d">** **</span>

---

The Stochastic Flakes material <span style="color: #172b4d">results from modifying the Generic material and cannot be found in the Creation menu of V-Ray Asset Editor. </span>The Stochastic Flakes material does not need any additional layers. It is set by removing the V-Ray BRDF layer of the Generic material and adding the Stochastic Flakes material as a layer. <span style="color: #172b4d">Applying the Stochastic Flakes material as a layer provides flexibility in creating advanced materials. </span>

![image](media://872520b4-95c4-4b46-a742-234f05629c0c)



## **UI Options**

---

The Generic material settings are organized in *Basic* and *Advanced* modes. You can switch the mode from the toggle button under the **Preview Swatch** or globally from the [Configuration](https://docs-chaos.atlassian.net/wiki/spaces/VRHINO/pages/116130562) rollout of the Settings tab.

An **Add Layer **button is provided for some V-Ray materials, including Stochastic Flakes. You can select an additional layer that can add up to the appearance of the material. <span style="color: #172b4d">Note that the added layers can be removed and rearranged, as shown in the </span><span style="color: #172b4d">***[Add Layer](https://docs-chaos.atlassian.net/wiki/spaces/VRHINO/pages/116129859/How+to+Work+with+Materials#Rearrange/delete)***</span><span style="color: #172b4d"> section.</span>

<span style="color: #000000">The context options of the Color Slot allow to </span><span style="color: #000000">**Copy**</span><span style="color: #000000"> and </span><span style="color: #000000">**Paste**</span><span style="color: #000000"> a color from one color slot to another, as well as to reset the color selection.</span>

<span style="color: #000000">A</span><span style="color: #000000">** Reset **</span><span style="color: #000000">option is provided in the context menu of each Number Slider. You can reset the slider value to the default one.</span>  
<span style="color: #172b4d"> </span>


![VRay7.5_StochasticFlakes_UI.gif](media://5f382b7f-ec0b-4f6f-8e44-835833e92805)

## **Base Parameters**

---

**Color** – Specifies the reflection color of the flakes.

**Hilight Glossiness – **Controls the distribution of the flakes. A value of 1.0. makes all flakes with normals perpendicular to the surface, whereas lower values randomize the normals of the flakes.** ** *See the **[Highlight Glossiness](#highlightGlossi)** example below.*

**BDRF Type **– Specifies the BRDF used to guide the distribution of the flakes.

**Beckmann** – Uses a Beckmann distribution for the flakes.   
**GGX **– Uses GGX distribution for the flakes (the GGX distribution has a longer "tail" compared to Beckmann).

**Flakes **– When enabled, the material simulates flakes scattered on the surface of the object. If disabled, the material simply renders the specified BRDF type with the specified glossiness. *See the **[Enable Flakes](#flakes)** example below.*

**Mapping Type** –** **Specifies the way the flakes are scattered on the surface:

**Mapping Channel **– The flakes are mapped according to the specified mapping channel. The density of the flakes on the surface depends on the way the UVs follow the surface. 

**Tri-Planar **– The material uses tri-planar mapping to create the flakes. This mode is useful for objects that don't have suitable UV mapping.

**Count **– The number of flakes expressed at the square root of the actual number of flakes in the unit texture square. For example, a value of 3000 generates 9,000,000 flakes in the unit texture square. The number of flakes is restricted to 231 (a little over 2 billion), which means the highest useful value for **Num Flakes** is 46340. If you need more than 2 billion flakes, increase the **Scale** parameter. *See the **[Number of Flakes](#numFlakes)** example below.*

**Scale** – Controls the scale of the flakes in texture space. When Mapping Type is set to **Mapping Channel**, a value of 1.0 is recommended. For **Tri-planar from Object XYZ** mapping, the **Num Flakes** amount is distributed in each square unit in local object coordinates. In this case, it is necessary to lower the Flake Scale value to 0.05, 0.01, or even less, and increase the Num Flakes value depending on the object size, especially if square artifacts are observed.

**Angle** – Controls the "softening" of the flakes effect. Higher values produce softer results while smaller values make the flakes sharper. Usually, values between 0.5 and 0.8 are used. *See the **[Blur Angle](#blurAngle)** example below.*


![VRay7.5_Flakes_StochasticFlakes.png](media://14c2c5c7-f4ea-4d01-b629-ff4d14f32e36)

<span style="color: #172b4d"> </span>


> Macro (anchor)



---


### **Example: Enable Flakes**

When this option is disabled, the continuous GGX distribution is rendered.


![image2015-12-17_16_29_34.png](media://9c3b4b79-ac0b-44ba-910f-1d678f303304)

![image2015-12-17_16_30_33.png](media://76a24575-f528-42b9-8673-64edb047359f)



> Macro (anchor)



---


### **Example: Number of Flakes**


![image2015-12-17_18_21_34.png](media://94f324fe-fc9d-42e8-af38-0035c60a8da4)

![image2015-12-17_18_28_37.png](media://94080914-a7b2-4f9c-9702-8fac4beaaf29)

![image2015-12-17_18_22_48.png](media://5d206c7a-eb59-4327-a8b6-18a1fc11ac76)


> Macro (anchor)



---


### **Example: Highlight Glossiness**


![image2015-12-17_18_30_38.png](media://3cb55b34-f876-483d-9b99-c4d009545485)



![image2015-12-17_18_31_13.png](media://26659038-6eed-4ae0-bac0-5bc339314561)



![image2015-12-17_18_31_58.png](media://335bf6da-e679-44d5-babf-b55600c330a0)




> Macro (anchor)



---


### **Example: Blur Angle**


![image2015-12-17_20_7_50.png](media://a7708ff2-0ac6-4dcc-94e8-a3bc4f553d40)

![image2015-12-17_20_20_47.png](media://3ba13fd1-a7e0-4ec3-9835-d91afa4ac4f6)

![image2015-12-17_20_8_58.png](media://6b0b9869-329f-4e69-a2a2-f0ced9810075)

  


## **Colored Flakes **

---

The Colored Flakes parameters control the color and random hue and lightness of the flakes. The correct physical behavior is that the material appears darker because the colored flakes/mirrors reflect only a certain part of the spectrum. When viewed from distance, the aggregate color of the material converges to the average color of the flakes.

**Colored Flakes **– Dropdown to enable Colored Flakes.

**Mode **– Specifies the randomization method of the colored flakes. 

**Random Hue **– Enables randomized hue for the flakes.   
**Random from Map** – Enables the use of a texture map for randomized colors.

**Saturation** – Determines the saturation variation of the colors for all flakes.

**Lightness** – Controls the lightness variation of the colors for all flakes.

**Random Color Map** – Available when **Colored Flakes** is set to **Random from Map**. Specifies a texture from which random colors are sampled and applied to the flake color. Note that only the bottom-most horizontal row of pixels from the texture will be sampled; all other parts are ignored. *See the **[Random Color Map example](#RandomColorMap)** below.*

**White Average** – When enabled, renders colored flakes without the darkening effect. Note that this is not physically correct.

![image](media://c502c188-b5cd-422a-b92c-f254fbc82087)

<span style="color: #172b4d"> </span>


> Macro (anchor)



---


### **Example: Random Color Map**

The **Random Color Map** parameter allows the user to provide a texture map for randomizing the stochastic flake colors. It is only accessible when **Colored Flakes** is set to **Random from Map**. Random colors are generated by sampling the horizontal row of pixels at the very bottom of the map along the U-axis. The sample area is only 1 pixel tall; the rest of the map is ignored.


![image](media://58a2be30-c788-4fd0-a001-d5a320031b58)


## **Advanced Options**

---

**Seed** – The seed for the randomization of flakes. Changing this value produces a different flake pattern.

**Blend Min** – Specifies the number of flakes per pixel below which the flakes are computed. When the number of flakes per pixel is above this value, the material gradually transitions into a smooth (non-discrete) BRDF.

**Blend Max** – Specifies the number of flakes per pixel above which the material only computes the smooth (non-Discrete) BRDF. If the number of flakes per pixel is below this value, the material gradually transitions into discrete flakes.

![image](media://589442d9-94b1-4a3e-a013-94c56a3bf468)


## **Multipliers**

---

**Mode **– Specifies how textures and colors are blended by the multipliers. When set to Multiply, the texture is blended with black color. When Blend Amount is selected, the user-specified color is used for blending.

**Color** – Blends between the texture assigned (if present) and a color.

**Hilight Glossiness** – Blends between the texture assigned (if present) and a color.


![VRay7.5_Flakes_Multipliers.png](media://6c2acd58-fe19-406a-8410-33a88be36f14)



## **Notes**

---

<span style="color: #202124">All other material settings are part of the Generic material and can be found on the </span>[Generic](https://docs-chaos.atlassian.net/wiki/spaces/VRHINO/pages/116129840) <span style="color: #202124">material page.</span>