mirror of
https://github.com/devZoGok/vb01.git
synced 2026-08-26 19:43:30 +00:00
Gaussian blur
bug fixes
This commit is contained in:
@@ -10,7 +10,7 @@ uniform sampler2D tex;
|
||||
void main(){
|
||||
int amount=5;
|
||||
float weight[5] = float[] (0.227027, 0.1945946, 0.1216216, 0.054054,0.016216);
|
||||
vec2 texel=1/textureSize(tex,0);
|
||||
vec2 texel=1.0/textureSize(tex,0);
|
||||
vec3 c=texture(tex,texCoords).rgb*weight[0];
|
||||
|
||||
for(int i=1;i<amount;i++){
|
||||
|
||||
Reference in New Issue
Block a user