-
Notifications
You must be signed in to change notification settings - Fork 0
Implement texture loading and sampling #5
Copy link
Copy link
Open
Labels
Description
Texture.h
/**
* Loads the texture with the given filename.
*/
Texture(std::string textureName);
/**
* Samples the texture at the given texture coordinates.
* @param uv The uv-coordinates.
* @return The color at the given texture coordinates.
*/
Vec3Df sample(const Vec2Df &uv) const;Texture.cpp
// TODO: Implement loading and sampling a texture.
Texture::Texture(std::string textureName) {
}
Vec3Df Texture::sample(const Vec2Df &uv) const {
// dummy value
return Vec3Df(0, 0, 0);
}Reactions are currently unavailable