Skip to content

Commit 6a8cc5d

Browse files
committed
Tweak shadow progression.
1 parent 516d32d commit 6a8cc5d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ModelMaterials_GL4/templates/cus_gl4.frag.glsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1377,7 +1377,7 @@ void main(void)
13771377
float buildProgress = shadowVertexPos.w;
13781378
if (buildProgress > -0.5){
13791379
float height = clamp(pieceVertexPosOrig.w/1.0,0,1);
1380-
buildProgress = 0.1 + 0.9*buildProgress;
1380+
buildProgress = clamp(0.05 + 0.9*buildProgress, 0.2, 1.0);
13811381
if (height > buildProgress) {
13821382
discard;
13831383
}

0 commit comments

Comments
 (0)