X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=shaders%2Fcommon_world.glsl;h=ccf416eadd9a3d88469cb89388bab31167838ebc;hb=791f807111a1f740f745c67db642aa7a8bee56e8;hp=5e1a8919070e9f1865a1250c745f98f329222ed1;hpb=6d66c67945f84476d6ac75a0497007cc30bcf58c;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/shaders/common_world.glsl b/shaders/common_world.glsl index 5e1a891..ccf416e 100644 --- a/shaders/common_world.glsl +++ b/shaders/common_world.glsl @@ -1,3 +1,5 @@ +layout (location = 0) out vec4 oColour; + layout (std140) uniform ub_world_lighting { vec4 g_light_colours[3]; @@ -7,45 +9,33 @@ layout (std140) uniform ub_world_lighting vec4 g_water_plane; vec4 g_depth_bounds; float g_water_fog; + float g_time; int g_light_count; int g_light_preview; -}; + int g_shadow_samples; -uniform sampler2D g_world_depth; + int g_debug_indices; + int g_debug_complexity; -// Standard diffuse + spec models -// ============================== - -vec3 do_light_diffuse( vec3 vfrag, vec3 wnormal ) -{ - vec3 vtotal = g_ambient_colour.rgb; + // g_time ? - for( int i=0; i