mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-25 13:35:12 +00:00
More shadow adjustments
This commit is contained in:
parent
b83bda7d6b
commit
406bcb158d
1 changed files with 1 additions and 1 deletions
|
@ -500,7 +500,7 @@ void make_shadow_vertex(Vtx *vertices, s8 index, struct Shadow s, s8 shadowVerte
|
||||||
if (shadowVertexType == SHADOW_WITH_9_VERTS) {
|
if (shadowVertexType == SHADOW_WITH_9_VERTS) {
|
||||||
f32 oldYPosVtx = yPosVtx;
|
f32 oldYPosVtx = yPosVtx;
|
||||||
yPosVtx = extrapolate_vertex_y_position(s, xPosVtx, zPosVtx);
|
yPosVtx = extrapolate_vertex_y_position(s, xPosVtx, zPosVtx);
|
||||||
f32 diff = fabs(oldYPosVtx - yPosVtx) / 200.0f;
|
f32 diff = fabs(oldYPosVtx - yPosVtx) / 5.0f;
|
||||||
if (diff > 1) { diff = 1; }
|
if (diff > 1) { diff = 1; }
|
||||||
solidity = 200 * (1.0f - diff);
|
solidity = 200 * (1.0f - diff);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue