# Materials Solution

#### Summary

This solution shows various materials in a 3D scene. Those are wood, fur, carbon and cube-mapping-effects for example. All of the shown materials are available as template-appearances in SceneComposer that can be applied to existing nodes.

#### Purpose

The user gets an overview of which template-appearances are provided with SceneComposer. The different spheres have the appearances attached, hence the user can experiment with their properties and get an instant visual feedback.

#### Description

This section describes the single materials and which important properties they consist of.

##### Gooch

Gooch shading between two colors, configurable via shader parameters.

<div class="contents" id="bkmrk-"><div class="contents"><div class="textblock"><div class="image"><div drawio-diagram="1646"><img src="https://doc316en.candera.eu/uploads/images/drawio/2023-02/drawing-7-1676612012.png" alt=""/></div>

</div></div></div></div>##### Wood

A fully procedural shader to achieve the look of annual rings in wooden objects. The effect can be configured via shader parameters, where the wood center defines a point along the center of the virtual tree trunk, the wood direction defines the direction of the wood grain and the multiplier affects the density of the annual rings.

<div class="contents" id="bkmrk--0"><div class="contents"><div class="textblock"><div class="image"><div drawio-diagram="1647"><img src="https://doc316en.candera.eu/uploads/images/drawio/2023-02/drawing-7-1676612029.png" alt=""/></div>

</div></div></div></div>##### Bump Mapping

For structured materials. Bump mapping requires a mesh with tangents and binormals, a color texture as well as a normal map.

<div class="contents" id="bkmrk--1"><div class="contents"><div class="textblock"><div class="image"><div drawio-diagram="1649"><img src="https://doc316en.candera.eu/uploads/images/drawio/2023-02/drawing-7-1676612047.png" alt=""/></div>

</div></div></div></div>##### Carbon Fibre

Achieves a carbon fibre look by applying specular highlights to the bright parts of the carbon texture only. The shader parameter "Tile" allows repeating the carbon fibre texture on the object. Also supports cube map reflection.

<div class="contents" id="bkmrk--2"><div class="contents"><div class="textblock"><div class="image"><div drawio-diagram="1651"><img src="https://doc316en.candera.eu/uploads/images/drawio/2023-02/drawing-7-1676612074.png" alt=""/></div>

</div></div></div></div>##### Gradient Linear

A simple linear gradient between two colors along a specified axis. Can be configured via the shader parameters: starting position, direction and magnitude.

<div class="contents" id="bkmrk--3"><div class="contents"><div class="textblock"><div class="image"><div drawio-diagram="1653"><img src="https://doc316en.candera.eu/uploads/images/drawio/2023-02/drawing-7-1676612093.png" alt=""/></div>

</div></div></div></div>##### Gradient Radial

A simple radial gradient between two colors around a specified center point. Can be configured via the shader parameters: starting position and magnitude.

<div class="contents" id="bkmrk--4"><div class="contents"><div class="textblock"><div class="image"><div drawio-diagram="1654"><img src="https://doc316en.candera.eu/uploads/images/drawio/2023-02/drawing-7-1676612122.png" alt=""/></div>

</div></div></div></div>##### Fur

A multiple pass appearance simulating hair or fur. The amount of passes is variable, each pass should be configured separately via an alpha texture (hair position), a color texture (hair color) and shader parameters.

<div class="contents" id="bkmrk--5"><div class="contents"><div class="textblock"><div class="image"><div drawio-diagram="1655"><img src="https://doc316en.candera.eu/uploads/images/drawio/2023-02/drawing-7-1676612137.png" alt=""/></div>

</div></div></div></div>##### Brushed Metal

Anisotropic lighting of brushed metal using a strand texture for the diffuse and specular intensities.

<div class="contents" id="bkmrk--6"><div class="contents"><div class="textblock"><div class="image"><div drawio-diagram="1656"><img src="https://doc316en.candera.eu/uploads/images/drawio/2023-02/drawing-7-1676612157.png" alt=""/></div>

</div></div></div></div>##### Car Paint Flip Flop

Simulates flip-flop car paint which changes color depending on the viewer's position and the direction of light. Also supports cube map reflection.

<div class="contents" id="bkmrk--7"><div class="contents"><div class="textblock"><div class="image"><div drawio-diagram="1657"><img src="https://doc316en.candera.eu/uploads/images/drawio/2023-02/drawing-7-1676612178.png" alt=""/></div>

</div></div></div></div>##### Car Paint Metallic

Simulates metallic car paint using a noise texture. Also supports cube map reflection.

<div class="contents" id="bkmrk--8"><div class="contents"><div class="textblock"><div class="image"><div drawio-diagram="1658"><img src="https://doc316en.candera.eu/uploads/images/drawio/2023-02/drawing-7-1676612200.png" alt=""/></div>

</div></div></div></div>##### Car Paint Metallic Flip Flop

Combines the effects of metallic and flip-flop car paint. Also supports cube map reflection.

<div class="contents" id="bkmrk--9"><div class="contents"><div class="textblock"><div class="image"><div drawio-diagram="1659"><img src="https://doc316en.candera.eu/uploads/images/drawio/2023-02/drawing-7-1676612222.png" alt=""/></div>

</div></div></div></div>#### Sphere Mapping

Wraps a sphere map around an object.

<div class="contents" id="bkmrk--10"><div class="contents"><div class="textblock"><div class="image"><div drawio-diagram="1660"><img src="https://doc316en.candera.eu/uploads/images/drawio/2023-02/drawing-7-1676612240.png" alt=""/></div>

</div></div></div></div>##### Cube Mapping

Wraps a cube map around an object.

<div class="contents" id="bkmrk--11"><div class="contents"><div class="textblock"><div class="image"><div drawio-diagram="1661"><img src="https://doc316en.candera.eu/uploads/images/drawio/2023-02/drawing-7-1676612259.png" alt=""/></div>

</div></div></div></div>##### Cube Mapping Reflection

Reflects a cube map in an object.

<div class="contents" id="bkmrk--12"><div class="contents"><div class="textblock"><div class="image"><div drawio-diagram="1662"><img src="https://doc316en.candera.eu/uploads/images/drawio/2023-02/drawing-7-1676612275.png" alt=""/></div>

</div></div></div></div>##### Cube Mapping Refraction

Refracts a cube map through an object achieving a lens effect, the refraction ratio shader parameter will affect the amount of distortion.

<div class="contents" id="bkmrk--13"><div class="contents"><div class="textblock"><div class="image"><div drawio-diagram="1663"><img src="https://doc316en.candera.eu/uploads/images/drawio/2023-02/drawing-7-1676612320.png" alt=""/></div>

</div></div></div></div>##### Cube Mapping Reflection Refraction

Combines the effects of reflection and refraction on a cube map.

<div class="contents" id="bkmrk--14"><div class="textblock"><div class="image"><div drawio-diagram="1664"><img src="https://doc316en.candera.eu/uploads/images/drawio/2023-02/drawing-7-1676612333.png" alt=""/></div>

</div>---

<div class="image">  
</div></div></div>