mirror of
https://github.com/bkaradzic/bimg.git
synced 2026-02-18 04:53:07 +01:00
Added cubemap radiance filter.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user