mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 12:42:34 +01:00
Format files to remove trailing spaces (#3384)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
|
||||
@@ -39,4 +39,3 @@ void main()
|
||||
color.xyz = toLinear(color.xyz)*l;
|
||||
gl_FragColor = toGamma(color);
|
||||
}
|
||||
|
||||
|
||||
@@ -86,4 +86,3 @@ void main()
|
||||
gl_FragColor.xyz = mix(u_fogColor, final, fogFactor);
|
||||
gl_FragColor.w = 1.0;
|
||||
}
|
||||
|
||||
|
||||
@@ -14,4 +14,3 @@ void main()
|
||||
|
||||
v_texcoord0 = a_texcoord0;
|
||||
}
|
||||
|
||||
|
||||
@@ -14,4 +14,3 @@ void main()
|
||||
{
|
||||
#include "fs_shadowmaps_color_lighting_main.sh"
|
||||
}
|
||||
|
||||
|
||||
@@ -15,4 +15,3 @@ void main()
|
||||
{
|
||||
#include "fs_shadowmaps_color_lighting_main.sh"
|
||||
}
|
||||
|
||||
|
||||
@@ -14,4 +14,3 @@ void main()
|
||||
{
|
||||
#include "fs_shadowmaps_color_lighting_main.sh"
|
||||
}
|
||||
|
||||
|
||||
@@ -14,4 +14,3 @@ void main()
|
||||
{
|
||||
#include "fs_shadowmaps_color_lighting_main.sh"
|
||||
}
|
||||
|
||||
|
||||
@@ -14,4 +14,3 @@ void main()
|
||||
{
|
||||
#include "fs_shadowmaps_color_lighting_main.sh"
|
||||
}
|
||||
|
||||
|
||||
@@ -14,4 +14,3 @@ void main()
|
||||
{
|
||||
#include "fs_shadowmaps_color_lighting_main.sh"
|
||||
}
|
||||
|
||||
|
||||
@@ -14,4 +14,3 @@ void main()
|
||||
{
|
||||
#include "fs_shadowmaps_color_lighting_main.sh"
|
||||
}
|
||||
|
||||
|
||||
@@ -14,4 +14,3 @@ void main()
|
||||
{
|
||||
#include "fs_shadowmaps_color_lighting_main.sh"
|
||||
}
|
||||
|
||||
|
||||
@@ -23,4 +23,3 @@ void main()
|
||||
vec4 rgba = vec4(color, (1.0-edge)*opacity);
|
||||
gl_FragColor = rgba;
|
||||
}
|
||||
|
||||
|
||||
@@ -16,4 +16,3 @@ void main()
|
||||
v_view = u_camPos - mul(u_model[0], vec4(a_position, 1.0) ).xyz;
|
||||
v_bc = a_color1;
|
||||
}
|
||||
|
||||
|
||||
@@ -1200,5 +1200,3 @@ ENTRY_IMPLEMENT_MAIN(
|
||||
, "Adaptive Screen Space Ambient Occlusion."
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#assao"
|
||||
);
|
||||
|
||||
|
||||
|
||||
@@ -100,4 +100,3 @@ void main()
|
||||
imageStore(s_target, ivec2(dtID.xy), ao.xxxx);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -26,4 +26,3 @@ void main()
|
||||
imageStore(s_target, ivec2(dtID.xy), avg.xxxx);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -55,4 +55,3 @@ void main()
|
||||
imageStore(s_target3, ivec2(dtID.xy), ScreenSpaceToViewSpaceDepth( d ).xxxx);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -45,4 +45,3 @@ void main()
|
||||
imageStore(s_target1, ivec2(dtID.xy), ScreenSpaceToViewSpaceDepth( d ).xxxx);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -79,4 +79,3 @@ void main()
|
||||
imageStore(s_target, ivec3(dtID.xy, u_layer), SampleBlurred( ivec2(dtID.xy), inUV ).xyyy);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -80,4 +80,3 @@ void main()
|
||||
imageStore(s_target, ivec3(dtID.xy,u_layer), SampleBlurredWide(vec3(inUV,0.0)).xyyy);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -40,4 +40,3 @@ void main()
|
||||
|
||||
gl_FragColor = vec4(albedoColor * light * ao, 1.0f);
|
||||
}
|
||||
|
||||
@@ -4,4 +4,3 @@ vec3 a_normal : NORMAL;
|
||||
|
||||
vec2 v_texcoord0 : TEXCOORD0;
|
||||
vec3 v_normal : NORMAL = vec3(0.0, 0.0, 1.0);
|
||||
|
||||
|
||||
@@ -13,4 +13,3 @@ void main()
|
||||
gl_Position = mul(u_modelViewProj, vec4(a_position.xyz, 1.0) );
|
||||
v_texcoord0 = a_texcoord0;
|
||||
}
|
||||
|
||||
|
||||
@@ -18,4 +18,3 @@ void main()
|
||||
{
|
||||
gl_FragColor = VirtualTexture(v_texcoord0.xy);
|
||||
}
|
||||
|
||||
|
||||
@@ -11,5 +11,3 @@ uniform vec4 u_params[2];
|
||||
|
||||
#define COMPUTE_THREAD_COUNT 32u
|
||||
#define UPDATE_INDIRECT_VALUE_DIVIDE 32u
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
/*
|
||||
* Copyright 2013 Jeremie Roy. All rights reserved.
|
||||
* License: https://github.com/bkaradzic/bgfx/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
@@ -10,4 +10,3 @@ void main()
|
||||
v_texcoord0 = a_texcoord0;
|
||||
v_color0 = a_color0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user