main
Brett 2024-01-25 15:51:26 -05:00
parent 4abc4ef4e4
commit 215dc13c00
5 changed files with 16 additions and 4 deletions

View File

@ -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

View File

@ -242,4 +242,6 @@ inline static allowed_funcs<function_t> intersection_comp(const allowed_funcs<fu
return set;
}
float eval_AMF(const image& img);
#endif //GP_IMAGE_TEST_FUNCTIONS_H

View File

@ -28,7 +28,7 @@
#include "blt/math/vectors.h"
#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>;
inline blt::area_allocator<image_data_t, 32> img_allocator;

View File

@ -230,3 +230,9 @@ void f_if(image& img, float x, float y, blt::size_t argc, const image** argv, co
else
img.set(i3, xi, yi);
}
float eval_AMF(const image& img)
{
return 0;
}

View File

@ -18,7 +18,7 @@ blt::gfx::matrix_state_manager global_matrices;
blt::gfx::resource_manager resources;
blt::gfx::batch_renderer_2d renderer_2d(resources);
constexpr blt::i32 MAX_DEPTH = 25;
constexpr blt::i32 MAX_DEPTH = 17;
struct node;
@ -293,6 +293,10 @@ void update(std::int32_t w, std::int32_t h)
root->evaluate_tree();
BLT_INFO("Preprocess");
// if (root->hasImage())
// for (auto& v : root->getImage().getData())
// v = v.normalize();
BLT_INFO("Uploading");
//delete texture;
if (root->hasImage())