Add Order Independent Transparency example (#755)
* Add Order Independent Transparency example * Update README.md * Add copyright at Order Independent Transparency example * Disable the validation by default
This commit is contained in:
parent
d6b61a0952
commit
82747df540
11 changed files with 822 additions and 0 deletions
21
data/shaders/glsl/oit/geometry.vert
Normal file
21
data/shaders/glsl/oit/geometry.vert
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#version 450
|
||||
|
||||
layout (location = 0) in vec3 inPos;
|
||||
|
||||
layout (set = 0, binding = 0) uniform RenderPassUBO
|
||||
{
|
||||
mat4 projection;
|
||||
mat4 view;
|
||||
} renderPassUBO;
|
||||
|
||||
layout (set = 0, binding = 1) uniform ObjectUBO
|
||||
{
|
||||
mat4 model;
|
||||
vec4 color;
|
||||
} objectUBO;
|
||||
|
||||
void main()
|
||||
{
|
||||
mat4 PVM = renderPassUBO.projection * renderPassUBO.view * objectUBO.model;
|
||||
gl_Position = PVM * vec4(inPos, 1.0);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue