WORKING! Awesome! It now casts fully inside the gpu,
context is then switched to gl and then rendered via sfml. It has no loop, no controls, and the aspect ratio is off, but holy hell it works!
This commit is contained in:
@@ -34,6 +34,12 @@ public:
|
||||
char *list;
|
||||
sf::Vector3i dimensions;
|
||||
|
||||
void setVoxel(sf::Vector3i position, int val){
|
||||
|
||||
list[position.x + dimensions.x * (position.y + dimensions.z * position.z)] = val;
|
||||
|
||||
};
|
||||
|
||||
void moveLight(sf::Vector2f in);
|
||||
sf::Vector3f global_light;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user