Initial commit: Final state of the master project
This commit is contained in:
21
Research/core/Voxelizer/VoxelInfo.h
Normal file
21
Research/core/Voxelizer/VoxelInfo.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#pragma once
|
||||
#include "../../inc/glm/glm.hpp"
|
||||
|
||||
struct VoxelInfo
|
||||
{
|
||||
public:
|
||||
glm::uvec3 position;
|
||||
float angle;
|
||||
glm::vec3 normal;
|
||||
float reflectivity;
|
||||
glm::u8vec3 color;
|
||||
|
||||
inline VoxelInfo(glm::uvec3 position, glm::u8vec3 color, glm::vec3 normal, float angle, float reflectivity) :
|
||||
position(position), angle(angle), normal(normal), reflectivity(reflectivity), color(color)
|
||||
{}
|
||||
|
||||
bool operator==(const VoxelInfo& info)
|
||||
{
|
||||
return position == info.position && angle == info.angle && color == info.color && normal == info.normal;
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user