# Carpaint BSDF¶

## Description¶

Example of a metallic blue car paint BSDF

This BSDF simulates an absorbing and diffusive dielectric layer loaded with shiny particles. It is mainly used for modelling advanced car paints. The particle texture is visible when rendering close-ups or high definition pictures.

Note

## Children Nodes¶

 dye Absorbance of the dielectric layer in m-1 pigment The spectral diffuse reflectance, or albedo, of the undercoat particle The spectral reflectance of particles diffusionthickness The typical diffusion length inside the layer. A smaller value corresponds to higher diffusion particleroughness The particles roughness exponent, between 0 (very rough) and infinity (specular) surfaceroughness The layer surface roughness, between 0 (very rough) and infinity (specular)

## Parameters¶

name

type

description

ior

real

The refractive index, which controls the surface reflectivity and refraction within the layer. Must be 1 (no specular reflection) or greater

particlesize

real

The size of particles in m

particledisalignment

real

An exponent parameter governing the distribution of particle directions, between 0 (random orientations) and infinity (aligned with the surface)

## Ocean XML 4.0 example¶

<bsdf type="carpaint" name="bsdf" ior="1.5" particlesize="0.0005" particledisalignment="0.5">