Add vk_ray_trace_indirect_scissor sample
This commit is contained in:
parent
27d8a79ce3
commit
a6690f149a
30 changed files with 4498 additions and 6 deletions
20
ray_tracing_indirect_scissor/shaders/raycommon.glsl
Normal file
20
ray_tracing_indirect_scissor/shaders/raycommon.glsl
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#include "LanternIndirectEntry.glsl"
|
||||
|
||||
struct hitPayload
|
||||
{
|
||||
vec3 hitValue;
|
||||
bool additiveBlending;
|
||||
};
|
||||
|
||||
layout(push_constant) uniform Constants
|
||||
{
|
||||
vec4 clearColor;
|
||||
vec3 lightPosition;
|
||||
float lightIntensity;
|
||||
int lightType; // 0: point, 1: infinite
|
||||
int lanternPassNumber; // -1 if this is the full-screen pass. Otherwise, used to lookup trace indirect parameters.
|
||||
int screenX;
|
||||
int screenY;
|
||||
int lanternDebug;
|
||||
}
|
||||
pushC;
|
||||
Loading…
Add table
Add a link
Reference in a new issue