Skip to content

Commit ce25bf4

Browse files
endankegithub-actions[bot]
authored andcommitted
Reduce shadows based on line-emissive-strength
GitOrigin-RevId: 29da91cd3765f95f2471638775ad61adccb41069
1 parent 0a1a17a commit ce25bf4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/shaders/line.fragment.glsl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ void main() {
166166
out_color = apply_lighting_with_emission_ground(out_color, emissive_strength);
167167
#ifdef RENDER_SHADOWS
168168
float light = shadowed_light_factor(v_pos_light_view_0, v_pos_light_view_1, v_depth);
169+
light = mix(light, 1.0, emissive_strength);
169170
#ifdef ELEVATED_ROADS
170171
out_color.rgb *= mix(v_road_z_offset != 0.0 ? u_ground_shadow_factor : vec3(1.0), vec3(1.0), light);
171172
#else

0 commit comments

Comments
 (0)