Skip to content

Commit 86a3487

Browse files
committed
RENDERERGL2: fixed bright corners on curved surfaces
thanks to Tobias Kühnhammer also see ioquake/ioq3#700
1 parent a3e7ece commit 86a3487

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

code/renderergl2/tr_curve.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ static void MakeMeshNormals(int width, int height, srfVert_t ctrl[MAX_GRID_SIZE]
192192
continue; // didn't get two points
193193
}
194194
CrossProduct(around[(k + 1) & 7], around[k], normal);
195-
if (VectorNormalize(temp) < 0.001f) {
195+
if (VectorNormalize(normal) < 0.001f) {
196196
continue;
197197
}
198198
VectorAdd(normal, sum, sum);

0 commit comments

Comments
 (0)