summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bgfx/examples/38-bloom/fs_albedo_output.sc
blob: 2167d6399c5adfbafbb5f3124945a2bee218985b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$input v_wpos, v_view, v_normal, v_tangent, v_bitangent, v_texcoord0

/*
 * Copyright 2018 Eric Arnebäck. All rights reserved.
 * License: https://github.com/bkaradzic/bgfx/blob/master/LICENSE
 */

#include "../common/common.sh"

uniform vec4 u_color;

void main()
{
	// the albedo-buffer of the g-buffer.
	gl_FragData[0] = u_color;

	// for convenience, we also output the same color, to the first texture of the texture chain used for bloom.
	// this color will now be bloomed, in the following passes.
	gl_FragData[1] = u_color;
}