Improved FXAA

Former-commit-id: aa3b64de5be93b05fab0ad45039e5aac74c4d197
This commit is contained in:
Lynix 2013-12-20 20:06:00 +01:00
parent f2bb457850
commit ac7f5008ca
2 changed files with 4 additions and 4 deletions

View File

@ -13,9 +13,9 @@ void main()
vec2 texCoord = gl_FragCoord.xy * InvTargetSize;
vec3 rgbNW = textureLod(ColorTexture, texCoord, 0.0).rgb;
vec3 rgbNE = textureLodOffset(ColorTexture, texCoord, 0.0, ivec2(1,0)).rgb;
vec3 rgbSW = textureLodOffset(ColorTexture, texCoord, 0.0, ivec2(0,1)).rgb;
vec3 rgbNW = textureLodOffset(ColorTexture, texCoord, 0.0, ivec2(-1,-1)).rgb;
vec3 rgbNE = textureLodOffset(ColorTexture, texCoord, 0.0, ivec2(1,-1)).rgb;
vec3 rgbSW = textureLodOffset(ColorTexture, texCoord, 0.0, ivec2(-1,1)).rgb;
vec3 rgbSE = textureLodOffset(ColorTexture, texCoord, 0.0, ivec2(1,1)).rgb;
vec3 rgbM = textureLod(ColorTexture, texCoord, 0.0).rgb;

File diff suppressed because one or more lines are too long