mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Format files to remove trailing spaces (#3384)
This commit is contained in:
@@ -20,5 +20,5 @@ void main()
|
||||
float mip = floor(MipLevel(v_texcoord0.xy, VirtualTextureSize) - MipBias);
|
||||
mip = clamp(mip, 0, mipCount);
|
||||
vec2 offset = floor(v_texcoord0.xy * PageTableSize);
|
||||
gl_FragColor = vec4(floor(vec3(offset / exp2(mip), mip)) / 255.0, 1.0);
|
||||
gl_FragColor = vec4(floor(vec3(offset / exp2(mip), mip)) / 255.0, 1.0);
|
||||
}
|
||||
|
||||
@@ -9,8 +9,8 @@ $input v_texcoord0
|
||||
* 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"
|
||||
|
||||
@@ -18,4 +18,3 @@ void main()
|
||||
{
|
||||
gl_FragColor = VirtualTexture(v_texcoord0.xy);
|
||||
}
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Copyright 2011-2024 Branimir Karadzic. All rights reserved.
|
||||
* License: https://github.com/bkaradzic/bgfx/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
* Reference(s):
|
||||
* - Based on Virtual Texture Demo by Brad Blanchard
|
||||
@@ -33,8 +33,8 @@ float MipLevel( vec2 uv, float size )
|
||||
return max( 0.5 * log2( d ), 0 );
|
||||
}
|
||||
|
||||
// This function samples the page table and returns the page's
|
||||
// position and mip level.
|
||||
// This function samples the page table and returns the page's
|
||||
// position and mip level.
|
||||
vec3 SampleTable( vec2 uv, float mip )
|
||||
{
|
||||
vec2 offset = fract( uv * PageTableSize ) / PageTableSize;
|
||||
|
||||
Reference in New Issue
Block a user