! 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! */
| 53 | \note self may NOT be nullptr! |
| 54 | */ |
| 55 | inline 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. |