bgfx/examples/27-terrain/fs_terrain.sc

14 lines
281 B
Python
Raw Normal View History

2015-12-13 20:21:07 -05:00
$input v_position, v_texcoord0
/*
* Copyright 2015 Andrew Mac. All rights reserved.
* License: http://www.opensource.org/licenses/BSD-2-Clause
*/
#include "../common/common.sh"
void main()
{
gl_FragColor = vec4(v_texcoord0.x, v_texcoord0.y, v_position.y / 50.0, 1.0);
}