增加试验性质的gbuffer_composition shader
This commit is contained in:
parent
e38d02f6e0
commit
7135b59134
9
res/shader/gbuffer_composition.frag
Normal file
9
res/shader/gbuffer_composition.frag
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
#version 450 core
|
||||||
|
|
||||||
|
layout(location = 0) in vec2 FragmentPosition;
|
||||||
|
layout(location = 0) out vec4 FragColor;
|
||||||
|
|
||||||
|
void main()
|
||||||
|
{
|
||||||
|
FragColor=vec4(normalize(FragmentPosition),0.0,1.0);
|
||||||
|
}
|
12
res/shader/gbuffer_composition.vert
Normal file
12
res/shader/gbuffer_composition.vert
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#version 450 core
|
||||||
|
|
||||||
|
layout(location = 0) in vec2 Vertex;
|
||||||
|
|
||||||
|
layout(location = 0) out vec2 FragmentPosition;
|
||||||
|
|
||||||
|
void main()
|
||||||
|
{
|
||||||
|
gl_Position=vec4(Vertex,0.0,1.0);
|
||||||
|
|
||||||
|
FragmentPosition=Vertex;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user