mirror of
https://github.com/holub/mame
synced 2025-07-16 14:58:52 +03:00

* Update to bgfx a93a714632b79b5ddbf5c86ac323fa9b76ed3433 Co-authored-by: Бранимир Караџић <branimirkaradzic@gmail.com>
19 lines
433 B
Python
19 lines
433 B
Python
$input a_position, a_texcoord0
|
|
$output v_position, v_texcoord0
|
|
|
|
/*
|
|
* Copyright 2015 Andrew Mac. All rights reserved.
|
|
* License: https://github.com/bkaradzic/bgfx/blob/master/LICENSE
|
|
*/
|
|
|
|
#include "../common/common.sh"
|
|
|
|
void main()
|
|
{
|
|
vec3 vp = mul(u_model[0], vec4(a_position.xyz, 1.0)).xyz;
|
|
v_position = vp;
|
|
v_texcoord0 = mul(u_model[0], vec4(a_texcoord0.xy, 1.0, 1.0)).xy;
|
|
|
|
gl_Position = mul(u_viewProj, vec4(vp.xyz, 1.0));
|
|
}
|