Improved FXAA
Former-commit-id: aa3b64de5be93b05fab0ad45039e5aac74c4d197
This commit is contained in:
parent
f2bb457850
commit
ac7f5008ca
|
|
@ -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
Loading…
Reference in New Issue