2019-07-13 22:03:23 +02:00
|
|
|
#ifndef VOXEL_MESHER_CUBIC_H
|
|
|
|
#define VOXEL_MESHER_CUBIC_H
|
|
|
|
|
2019-07-17 17:01:12 +02:00
|
|
|
#include "core/color.h"
|
|
|
|
#include "core/math/vector3.h"
|
|
|
|
#include "core/math/vector2.h"
|
|
|
|
|
2019-07-13 22:03:23 +02:00
|
|
|
#include "../voxel_mesher.h"
|
|
|
|
|
2019-07-17 17:01:12 +02:00
|
|
|
#include "voxel_cube_points.h"
|
|
|
|
|
2019-07-13 22:03:23 +02:00
|
|
|
class VoxelMesherCubic : public VoxelMesher {
|
|
|
|
GDCLASS(VoxelMesherCubic, VoxelMesher);
|
|
|
|
|
|
|
|
public:
|
2019-07-17 17:01:12 +02:00
|
|
|
float get_ao_strength() const;
|
|
|
|
void set_ao_strength(float value);
|
|
|
|
|
2019-07-17 19:51:09 +02:00
|
|
|
float get_base_light_value() const;
|
|
|
|
void set_base_light_value(float value);
|
|
|
|
|
2019-07-17 17:01:12 +02:00
|
|
|
void _add_buffer(Ref<VoxelBuffer> buffer);
|
2019-07-18 18:56:42 +02:00
|
|
|
void _bake_colors(Ref<VoxelBuffer> buffer);
|
2019-07-14 02:18:18 +02:00
|
|
|
|
2019-07-13 22:03:23 +02:00
|
|
|
VoxelMesherCubic();
|
2019-07-17 17:01:12 +02:00
|
|
|
~VoxelMesherCubic();
|
2019-07-13 22:03:23 +02:00
|
|
|
|
|
|
|
protected:
|
|
|
|
static void _bind_methods();
|
|
|
|
|
2019-07-17 17:01:12 +02:00
|
|
|
private:
|
|
|
|
float _ao_strength;
|
2019-07-17 19:51:09 +02:00
|
|
|
float _base_light_value;
|
2019-07-13 22:03:23 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|