1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-05-14 20:47:46 +00:00
novus/apps/mapeditor/include/objectpass.h
Joshua Goins dfef9fdccf Draw spheres at every instance object location
Now we can see where each object is (there's no way to tell them apart
yet.) The rendering is also extremely inefficient, so don't be surprised
if it slows down on your computer.
2025-05-13 16:57:37 -04:00

28 lines
527 B
C++

#pragma once
#include "pass.h"
#include <glm/glm.hpp>
#include <vulkan/vulkan.h>
class RenderManager;
class Device;
class AppState;
class ObjectPass : public RendererPass
{
public:
ObjectPass(RenderManager *renderer, AppState *appState);
void render(VkCommandBuffer commandBuffer, Camera &camera) override;
private:
void createPipeline();
VkPipeline m_pipeline = nullptr;
VkPipelineLayout m_pipelineLayout = nullptr;
RenderManager *m_renderer;
Device &m_device;
AppState *m_appState;
};