WELL WELL LOOK WHOS INSIDE AGAIN

This commit is contained in:
Benjamin Kyd
2023-01-23 16:12:31 +00:00
parent 200ecad6b3
commit 7eb251e145
7 changed files with 52 additions and 85 deletions

View File

@@ -44,8 +44,8 @@ void HHM::newScene(Scene* scene)
// which would involve a lot of mesh copying (avoid!) if i were to chain them
for (auto* mesh : meshs) {
void* verticies; void* normals; void* indicies;
int vertexCount = mesh->getVerticies(verticies, normals);
int indexCount = mesh->getIndicies(indicies);
int vertexCount = mesh->getVerticies(&verticies, &normals);
int indexCount = mesh->getIndicies(&indicies);
spdlog::debug("Mesh for module ready... {} {}", verticies, normals);
mod->submitTris(verticies, normals, vertexCount, indicies, indexCount);
}
@@ -64,13 +64,11 @@ void rayHitCallback(void* hhm, HitInfo* hit)
void HHM::rayReturn(HitInfo* hit)
{
HARTModule* mod = mDirectory.getActiveModule();
Renderer->computeHit(hit);
}
void HHM::bounce(Ray* newRay)
{
HARTModule* mod = mDirectory.getActiveModule();
}