sample_material
Functions
- sample_color_attribute(color, color_attribute, index_0, index_1, index_2, u, v)
- sample_material(out, mesh, primitive_id, u, v)
sample_color_attribute(color, color_attribute, index_0, index_1, index_2, u, v)
Kind: global function
Param | Type |
---|---|
color | Array.<number> |
color_attribute | BufferAttribute |
index_0 | number |
index_1 | number |
index_2 | number |
u | number |
v | number |
sample_material(out, mesh, primitive_id, u, v)
Kind: global function
Param | Type |
---|---|
out | Array.<number> |
mesh | PathTracedMesh |
primitive_id | number |
u | number |
v | number |