/*---------------------------------------------------------------------------* Copyright 2010-2011 Nintendo. All rights reserved. These coded instructions, statements, and computer programs contain proprietary information of Nintendo of America Inc. and/or Nintendo Company Ltd., and are protected by Federal copyright law. They may not be disclosed to third parties or copied or duplicated in any form, in whole or in part, without the prior written consent of Nintendo. *---------------------------------------------------------------------------*/ #version 330 varying vec2 v_texCoord; // This code assumes that the shader is 2xMSAA... uniform sampler2DMS s_texture; void main() { vec4 color; ivec2 itexCoord = ivec2(textureSize(s_texture) * v_texCoord); color = texelFetch( s_texture, itexCoord, 0); color += texelFetch( s_texture, itexCoord, 1); gl_FragColor = color * 0.5f; }