bgfx/examples/30-picking/fs_picking_id.sc
Бранимир Караџић 466c6a4e95 Happy New Year!
2023-01-14 10:05:12 -08:00

17 lines
339 B
Python

$input v_pos, v_view, v_normal, v_color0
/*
* Copyright 2011-2023 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bgfx/blob/master/LICENSE
*/
#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;
}