Bulk update nvpro-samples 11/20/23
5c72ddfc0522eb6604828e74886cf39be646ba78
This commit is contained in:
parent
debd0d5e33
commit
0c73e8ec1b
96 changed files with 927 additions and 922 deletions
|
|
@ -63,7 +63,7 @@ public:
|
|||
void setup(const VkInstance& instance, const VkDevice& device, const VkPhysicalDevice& physicalDevice, uint32_t queueFamily) override;
|
||||
void createDescriptorSetLayout();
|
||||
void createGraphicsPipeline();
|
||||
void loadModel(const std::string& filename, nvmath::mat4f transform = nvmath::mat4f(1));
|
||||
void loadModel(const std::string& filename, glm::mat4 transform = glm::mat4(1));
|
||||
void updateDescriptorSet();
|
||||
void createUniformBuffer();
|
||||
void createObjDescriptionBuffer();
|
||||
|
|
@ -79,14 +79,14 @@ public:
|
|||
|
||||
// Information pushed at each draw call
|
||||
PushConstantRaster m_pcRaster{
|
||||
{1}, // Identity matrix
|
||||
{10.f, 15.f, 8.f}, // light position
|
||||
0, // instance Id
|
||||
{-1.f, -1.f, -.4f}, // lightDirection;
|
||||
0.939692621f, // {cos(deg2rad(20.0f))}, // lightSpotCutoff;
|
||||
0.866025404f, // {cos(deg2rad(30.0f))}, // lightSpotOuterCutoff;
|
||||
100.f, // light intensity
|
||||
0 // light type
|
||||
{1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1}, // Identity matrix
|
||||
{10.f, 15.f, 8.f}, // light position
|
||||
0, // instance Id
|
||||
{-1.f, -1.f, -.4f}, // lightDirection;
|
||||
0.939692621f, // {cos(glm::radians(20.0f))}, // lightSpotCutoff;
|
||||
0.866025404f, // {cos(glm::radians(30.0f))}, // lightSpotOuterCutoff;
|
||||
100.f, // light intensity
|
||||
0 // light type
|
||||
};
|
||||
|
||||
// Array of objects and instances in the scene
|
||||
|
|
@ -125,13 +125,13 @@ public:
|
|||
Raytracer m_raytrace;
|
||||
|
||||
void initRayTracing();
|
||||
void raytrace(const VkCommandBuffer& cmdBuf, const nvmath::vec4f& clearColor);
|
||||
void raytrace(const VkCommandBuffer& cmdBuf, const glm::vec4& clearColor);
|
||||
|
||||
// Implicit
|
||||
ImplInst m_implObjects;
|
||||
|
||||
void addImplSphere(nvmath::vec3f center, float radius, int matId);
|
||||
void addImplCube(nvmath::vec3f minumum, nvmath::vec3f maximum, int matId);
|
||||
void addImplSphere(glm::vec3 center, float radius, int matId);
|
||||
void addImplCube(glm::vec3 minumum, glm::vec3 maximum, int matId);
|
||||
void addImplMaterial(const MaterialObj& mat);
|
||||
void createImplictBuffers();
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue