Bulk update nvpro-samples 03/10/22
This commit is contained in:
parent
7a2e7e6837
commit
08dab08b0b
7 changed files with 7 additions and 7 deletions
|
|
@ -76,8 +76,8 @@ public:
|
|||
{1}, // model identity
|
||||
{10.f, 15.f, 8.f}, // lightPosition
|
||||
{0}, // instanceId to retrieve the transformation matrix
|
||||
{100.f}, // lightIntensity
|
||||
{-1.f, -1.f, -1.f}, // lightDirection
|
||||
{100.f}, // lightIntensity
|
||||
{cos(deg2rad(12.5f))}, // lightSpotCutoff
|
||||
{cos(deg2rad(17.5f))}, // lightSpotOuterCutoff
|
||||
{0} // lightType 0: point, 1: infinite
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ static void onErrorCallback(int error, const char* description)
|
|||
void renderUI(HelloVulkan& helloVk)
|
||||
{
|
||||
ImGuiH::CameraWidget();
|
||||
ImGui::SetNextTreeNodeOpen(true, ImGuiCond_Once);
|
||||
ImGui::SetNextItemOpen(true, ImGuiCond_Once);
|
||||
if(ImGui::CollapsingHeader("Light"))
|
||||
{
|
||||
ImGui::RadioButton("Point", &helloVk.m_pcRaster.lightType, 0);
|
||||
|
|
|
|||
|
|
@ -77,8 +77,8 @@ struct PushConstantRaster
|
|||
mat4 modelMatrix; // matrix of the instance
|
||||
vec3 lightPosition;
|
||||
uint objIndex;
|
||||
float lightIntensity;
|
||||
vec3 lightDirection;
|
||||
float lightIntensity;
|
||||
float lightSpotCutoff;
|
||||
float lightSpotOuterCutoff;
|
||||
int lightType;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue