images
parent
4abc4ef4e4
commit
215dc13c00
|
@ -1,3 +1,3 @@
|
||||||
Start testing: Jan 25 14:48 EST
|
Start testing: Jan 25 15:50 EST
|
||||||
----------------------------------------------------------
|
----------------------------------------------------------
|
||||||
End testing: Jan 25 14:48 EST
|
End testing: Jan 25 15:50 EST
|
||||||
|
|
|
@ -242,4 +242,6 @@ inline static allowed_funcs<function_t> intersection_comp(const allowed_funcs<fu
|
||||||
return set;
|
return set;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
float eval_AMF(const image& img);
|
||||||
|
|
||||||
#endif //GP_IMAGE_TEST_FUNCTIONS_H
|
#endif //GP_IMAGE_TEST_FUNCTIONS_H
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
#include "blt/math/vectors.h"
|
#include "blt/math/vectors.h"
|
||||||
#include <variant>
|
#include <variant>
|
||||||
|
|
||||||
inline constexpr blt::i32 width = 1024, height = 1024;
|
inline constexpr blt::i32 width = 256, height = 256;
|
||||||
|
|
||||||
using image_data_t = std::array<blt::vec3, width * height>;
|
using image_data_t = std::array<blt::vec3, width * height>;
|
||||||
inline blt::area_allocator<image_data_t, 32> img_allocator;
|
inline blt::area_allocator<image_data_t, 32> img_allocator;
|
||||||
|
|
|
@ -230,3 +230,9 @@ void f_if(image& img, float x, float y, blt::size_t argc, const image** argv, co
|
||||||
else
|
else
|
||||||
img.set(i3, xi, yi);
|
img.set(i3, xi, yi);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
float eval_AMF(const image& img)
|
||||||
|
{
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
|
@ -18,7 +18,7 @@ blt::gfx::matrix_state_manager global_matrices;
|
||||||
blt::gfx::resource_manager resources;
|
blt::gfx::resource_manager resources;
|
||||||
blt::gfx::batch_renderer_2d renderer_2d(resources);
|
blt::gfx::batch_renderer_2d renderer_2d(resources);
|
||||||
|
|
||||||
constexpr blt::i32 MAX_DEPTH = 25;
|
constexpr blt::i32 MAX_DEPTH = 17;
|
||||||
|
|
||||||
struct node;
|
struct node;
|
||||||
|
|
||||||
|
@ -293,6 +293,10 @@ void update(std::int32_t w, std::int32_t h)
|
||||||
root->evaluate_tree();
|
root->evaluate_tree();
|
||||||
BLT_INFO("Preprocess");
|
BLT_INFO("Preprocess");
|
||||||
|
|
||||||
|
// if (root->hasImage())
|
||||||
|
// for (auto& v : root->getImage().getData())
|
||||||
|
// v = v.normalize();
|
||||||
|
|
||||||
BLT_INFO("Uploading");
|
BLT_INFO("Uploading");
|
||||||
//delete texture;
|
//delete texture;
|
||||||
if (root->hasImage())
|
if (root->hasImage())
|
||||||
|
|
Loading…
Reference in New Issue