Added cubemap radiance filter.

This commit is contained in:
Branimir Karadžić
2018-06-22 18:14:16 -07:00
parent c3a55957f2
commit 4e42a179ff
3 changed files with 125 additions and 29 deletions

View File

@@ -135,11 +135,32 @@ namespace bimg
, bx::Error* _err
);
///
ImageContainer* imageGenerateMips(
bx::AllocatorI* _allocator
, const ImageContainer& _image
);
struct LightingModel
{
enum Enum
{
Phong,
PhongBrdf,
Blinn,
BlinnBrdf,
Count
};
};
///
ImageContainer* imageCubemapRadianceFilter(
bx::AllocatorI* _allocator
, const ImageContainer& _image
, float _filterSize
, LightingModel::Enum _lightingModel = LightingModel::BlinnBrdf
, float _glossScale = 10.0f
, float _glossBias = 1.0f
);
} // namespace bimg