Skip to content

Commit 2f6f60d

Browse files
committed
fixed: glittering floor on Unity5
1 parent 814a10a commit 2f6f60d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/UnityChanStage/Visualizer/Visualizer.shader

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@
173173
float3 refpos = D.xyz / D.w;
174174

175175
float fade_by_depth = 1.0;
176-
fade_by_depth = max(1.0-refpos.y*0.3, 0.0);
176+
fade_by_depth = max(1.0-abs(refpos.y)*0.3, 0.0);
177177
float3 refcolor = 0.0;
178178

179179
float g = saturate((grid_d+0.02)*50.0);

0 commit comments

Comments
 (0)