-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
08a31ba
commit 7fc03da
Showing
8 changed files
with
45 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#version 430 | ||
|
||
/// DO NOT CHANGE | ||
#define group_size 16 | ||
|
||
layout(local_size_x = group_size, local_size_y = group_size) in; | ||
|
||
layout(rgba8, binding = 0) uniform image2D final_color; | ||
layout(rgba32f, binding = 1) uniform image2D output_w; | ||
|
||
void main() { | ||
ivec2 global_pos = ivec2(gl_GlobalInvocationID.xy); | ||
ivec2 local_indx = ivec2(gl_LocalInvocationID.xy); | ||
vec2 img_size = vec2(imageSize(final_color)); | ||
|
||
vec4 color = imageLoad(final_color, global_pos); | ||
float weight = max(1.0 - length(vec2(global_pos)/img_size - 0.5), 0.f); | ||
imageStore(output_w, global_pos, vec4(length(color.xyz)*weight, weight, 0, 1)); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters