MCPcopy Create free account
hub / github.com/RenderKit/embree / get3f

Function get3f

tutorials/common/texture/texture2d.h:55–60  ·  view source on GitHub ↗

! helper function that returns the sampled value for the first three channels of the given texture Right now, this function always asks the texture for all four channels, and then discards all but one; later implementations may have specialized 'get3f' methods with the texture \note self may NOT be nullptr! */

Source from the content-addressed store, hash-verified

53 \note self may NOT be nullptr!
54*/
55inline Vec3fa get3f(const Texture2D *self,
56 const Vec2f where)
57{
58 Vec4f ret = self->get(self, where);
59 return Vec3fa(ret);
60}
61
62/*! helper function that returns the sampled value of the four
63 channels of the given texture.

Callers

nothing calls this directly

Calls 2

Vec3faClass · 0.50
getMethod · 0.45

Tested by

no test coverage detected