MaterialSampler

A material's channels at a surface point, on the CPU, from the GLSL the renderers run (rendering-revamp §RVM-7: "the CPU runs the same module").

In the namespace construct::shader. Declared in src/libs/libconstruct/construct/shader/MaterialSampler.hpp.

Detailed description

The sampler builds a material module of one definition, takes its functions (MaterialModule::functionsSource()), and compiles a libeval program that calls the definition's function at the point: the patterns, remaps, gradients, expressions and bumps are the shader's, so OPAL's construct.material.sample, a probe and a test read the values the GPU shades with.

In this section