mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Cleanup.
This commit is contained in:
@@ -11,6 +11,6 @@ IMAGE2D_RW(i_light, rgba8, 2);
|
||||
|
||||
void main()
|
||||
{
|
||||
ivec2 coord = ivec2(gl_FragCoord.xy);
|
||||
imageStore(i_light, coord, vec4(0.0, 0.0, 0.0, 0.0) );
|
||||
ivec2 coord = ivec2(gl_FragCoord.xy);
|
||||
imageStore(i_light, coord, vec4(0.0, 0.0, 0.0, 0.0) );
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ void main()
|
||||
vec3 view = mul(u_view, vec4(wpos, 0.0) ).xyz;
|
||||
view = -normalize(view);
|
||||
|
||||
ivec2 coord = ivec2(gl_FragCoord.xy);
|
||||
ivec2 coord = ivec2(gl_FragCoord.xy);
|
||||
|
||||
vec3 lightColor = calcLight(wpos, normal, view, u_lightPosRadius[0].xyz, u_lightPosRadius[0].w, u_lightRgbInnerR[0].xyz, u_lightRgbInnerR[0].w);
|
||||
vec4 color = imageLoad(i_light, coord);
|
||||
|
||||
Reference in New Issue
Block a user