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

@@ -3720,5 +3720,3 @@ pub inline fn blit(_id: ViewId, _dst: TextureHandle, _dstMip: u8, _dstX: u16, _d
return bgfx_blit(_id, _dst, _dstMip, _dstX, _dstY, _dstZ, _src, _srcMip, _srcX, _srcY, _srcZ, _width, _height, _depth);
}
extern fn bgfx_blit(_id: ViewId, _dst: TextureHandle, _dstMip: u8, _dstX: u16, _dstY: u16, _dstZ: u16, _src: TextureHandle, _srcMip: u8, _srcX: u16, _srcY: u16, _srcZ: u16, _width: u16, _height: u16, _depth: u16) void;

View File

@@ -39,4 +39,3 @@ void main()
color.xyz = toLinear(color.xyz)*l;
gl_FragColor = toGamma(color);
}

View File

@@ -86,4 +86,3 @@ void main()
gl_FragColor.xyz = mix(u_fogColor, final, fogFactor);
gl_FragColor.w = 1.0;
}

View File

@@ -14,4 +14,3 @@ void main()
v_texcoord0 = a_texcoord0;
}

View File

@@ -14,4 +14,3 @@ void main()
{
#include "fs_shadowmaps_color_lighting_main.sh"
}

View File

@@ -15,4 +15,3 @@ void main()
{
#include "fs_shadowmaps_color_lighting_main.sh"
}

View File

@@ -14,4 +14,3 @@ void main()
{
#include "fs_shadowmaps_color_lighting_main.sh"
}

View File

@@ -14,4 +14,3 @@ void main()
{
#include "fs_shadowmaps_color_lighting_main.sh"
}

View File

@@ -14,4 +14,3 @@ void main()
{
#include "fs_shadowmaps_color_lighting_main.sh"
}

View File

@@ -14,4 +14,3 @@ void main()
{
#include "fs_shadowmaps_color_lighting_main.sh"
}

View File

@@ -14,4 +14,3 @@ void main()
{
#include "fs_shadowmaps_color_lighting_main.sh"
}

View File

@@ -14,4 +14,3 @@ void main()
{
#include "fs_shadowmaps_color_lighting_main.sh"
}

View File

@@ -23,4 +23,3 @@ void main()
vec4 rgba = vec4(color, (1.0-edge)*opacity);
gl_FragColor = rgba;
}

View File

@@ -16,4 +16,3 @@ void main()
v_view = u_camPos - mul(u_model[0], vec4(a_position, 1.0) ).xyz;
v_bc = a_color1;
}

View File

@@ -1200,5 +1200,3 @@ ENTRY_IMPLEMENT_MAIN(
, "Adaptive Screen Space Ambient Occlusion."
, "https://bkaradzic.github.io/bgfx/examples.html#assao"
);

View File

@@ -100,4 +100,3 @@ void main()
imageStore(s_target, ivec2(dtID.xy), ao.xxxx);
}
}

View File

@@ -26,4 +26,3 @@ void main()
imageStore(s_target, ivec2(dtID.xy), avg.xxxx);
}
}

View File

@@ -34,4 +34,3 @@ void main()
imageStore(s_target, ivec3(dtID.xy,u_layer), vec4(dot( vals, 0.2.xxxx ) + centre.x * 0.2, centre.y, 0.0, 0.0));
}
}

View File

@@ -55,4 +55,3 @@ void main()
imageStore(s_target3, ivec2(dtID.xy), ScreenSpaceToViewSpaceDepth( d ).xxxx);
}
}

View File

@@ -45,4 +45,3 @@ void main()
imageStore(s_target1, ivec2(dtID.xy), ScreenSpaceToViewSpaceDepth( d ).xxxx);
}
}

View File

@@ -79,4 +79,3 @@ void main()
imageStore(s_target, ivec3(dtID.xy, u_layer), SampleBlurred( ivec2(dtID.xy), inUV ).xyyy);
}
}

View File

@@ -80,4 +80,3 @@ void main()
imageStore(s_target, ivec3(dtID.xy,u_layer), SampleBlurredWide(vec3(inUV,0.0)).xyyy);
}
}

View File

@@ -40,4 +40,3 @@ void main()
gl_FragColor = vec4(albedoColor * light * ao, 1.0f);
}

View File

@@ -4,4 +4,3 @@ vec3 a_normal : NORMAL;
vec2 v_texcoord0 : TEXCOORD0;
vec3 v_normal : NORMAL = vec3(0.0, 0.0, 1.0);

View File

@@ -13,4 +13,3 @@ void main()
gl_Position = mul(u_modelViewProj, vec4(a_position.xyz, 1.0) );
v_texcoord0 = a_texcoord0;
}

View File

@@ -18,4 +18,3 @@ void main()
{
gl_FragColor = VirtualTexture(v_texcoord0.xy);
}

View File

@@ -11,5 +11,3 @@ uniform vec4 u_params[2];
#define COMPUTE_THREAD_COUNT 32u
#define UPDATE_INDIRECT_VALUE_DIVIDE 32u

View File

@@ -7585,4 +7585,3 @@ vn -0.567090 0.776659 -0.274245
vn -0.672016 0.735228 0.088511
vn -0.516133 0.848043 0.120122
vn -0.398125 0.839839 -0.369008

View File

@@ -5291,4 +5291,3 @@ vn -0.516133 0.848043 0.120122
vn -0.294180 0.754159 -0.587114
vn -0.371250 0.704178 -0.605233
vn -0.672016 0.735228 0.088511

View File

@@ -2609,4 +2609,3 @@ vn -0.516133 0.848043 0.120122
vn -0.294180 0.754159 -0.587114
vn -0.523407 0.573721 -0.629991
vn -0.741276 0.667292 0.072325

View File

@@ -1,4 +1,4 @@
/*
/*
* Copyright 2013 Jeremie Roy. All rights reserved.
* License: https://github.com/bkaradzic/bgfx/blob/master/LICENSE
*/

View File

@@ -10,4 +10,3 @@ void main()
v_texcoord0 = a_texcoord0;
v_color0 = a_color0;
}