mirror of
https://github.com/LearnOpenGL-CN/LearnOpenGL-CN.git
synced 2025-08-23 04:35:28 +08:00
Fix #65
This commit is contained in:
@@ -370,7 +370,7 @@ void main()
|
|||||||
{
|
{
|
||||||
sampleTex[i] = vec3(texture(screenTexture, TexCoords.st + offsets[i]));
|
sampleTex[i] = vec3(texture(screenTexture, TexCoords.st + offsets[i]));
|
||||||
}
|
}
|
||||||
vec3 col;
|
vec3 col = vec3(0.0);
|
||||||
for(int i = 0; i < 9; i++)
|
for(int i = 0; i < 9; i++)
|
||||||
col += sampleTex[i] * kernel[i];
|
col += sampleTex[i] * kernel[i];
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user