2019-01-03 13:34:30 +03:00
|
|
|
$input v_texcoord0
|
|
|
|
|
|
|
|
/*
|
2023-01-14 21:05:12 +03:00
|
|
|
* Copyright 2011-2023 Branimir Karadzic. All rights reserved.
|
2022-01-15 22:59:06 +03:00
|
|
|
* License: https://github.com/bkaradzic/bgfx/blob/master/LICENSE
|
2019-01-03 13:34:30 +03:00
|
|
|
*/
|
2019-01-05 10:12:48 +03:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Reference(s):
|
|
|
|
* - Based on Virtual Texture Demo by Brad Blanchard
|
|
|
|
* http://web.archive.org/web/20190103162638/http://linedef.com/virtual-texture-demo.html
|
|
|
|
*/
|
2019-01-03 13:34:30 +03:00
|
|
|
|
|
|
|
#include "../common/common.sh"
|
|
|
|
#include "virtualtexture.sh"
|
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
gl_FragColor = VirtualTexture(v_texcoord0.xy);
|
|
|
|
}
|
|
|
|
|