Format files to remove trailing spaces (#3384)

This commit is contained in:
Aaron Franke
2024-12-09 22:01:16 -08:00
committed by GitHub
parent 042ebe8814
commit 40961806bd
101 changed files with 3729 additions and 3763 deletions

View File

@@ -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);
}

View File

@@ -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);
}

View File

@@ -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;