-
Notifications
You must be signed in to change notification settings - Fork 18
Fragment_Section
Aiekick edited this page Mar 19, 2019
·
1 revision
this section correspond to the fragment shader
it is written like that :
@FRAGMENT, no params here
after that you need to specifiy the vec4 you wna ttu write into.
the location correspond to one of the attachment 0 to 7 :
layout(location = 0) out vec4 fragColor;
for declare other attachment, this notation is not sufficient, go to the tree : Uniforms / Buffer