X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;ds=inline;f=shaders%2Fcommon_world.glsl;h=43934098a427d5d5839a2736ed105961f2a136fc;hb=e61356f70eddb79f05d7b9e329e91963ec74f817;hp=da87204bbebe620f803961ae4755b45cf5d0870d;hpb=23ef4d7f6bfe6a5a91c78822b081a9ea63cb74a6;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/shaders/common_world.glsl b/shaders/common_world.glsl index da87204..4393409 100644 --- a/shaders/common_world.glsl +++ b/shaders/common_world.glsl @@ -9,46 +9,30 @@ 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; -// Standard diffuse + spec models -// ============================== - -vec3 do_light_diffuse( vec3 vfrag, vec3 wnormal ) -{ - vec3 vtotal = g_ambient_colour.rgb; - - for( int i=0; i