bgfx/examples/40-svt/fs_vt_unlit.sc
Бранимир Караџић af49c5d264 Happy New Year!
2021-01-14 15:53:49 -08:00

22 lines
458 B
Scala

$input v_texcoord0
/*
* Copyright 2011-2021 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause
*/
/*
* Reference(s):
* - Based on Virtual Texture Demo by Brad Blanchard
* http://web.archive.org/web/20190103162638/http://linedef.com/virtual-texture-demo.html
*/
#include "../common/common.sh"
#include "virtualtexture.sh"
void main()
{
gl_FragColor = VirtualTexture(v_texcoord0.xy);
}