2016-07-10 09:41:38 +03:00
|
|
|
$input v_pos, v_view, v_normal, v_color0
|
|
|
|
|
|
|
|
/*
|
2021-01-15 02:53:49 +03:00
|
|
|
* Copyright 2011-2021 Branimir Karadzic. All rights reserved.
|
2016-07-10 09:41:38 +03:00
|
|
|
* License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "../common/common.sh"
|
|
|
|
|
|
|
|
uniform vec4 u_id;
|
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
gl_FragColor.xyz = u_id.xyz; // This is dumb, should use u8 texture
|
|
|
|
gl_FragColor.w = 1.0;
|
|
|
|
}
|