Skip to content

Commit f495386

Browse files
authored
fix(website): clamp light helper elevation (#50)
Co-authored-by: agustin-littlehat <minotopo@gmail.com>
1 parent 6b75acc commit f495386

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

website/src/components/GalleryWorkbench/GalleryWorkbench.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ function wrapDegrees(value: number): number {
275275
}
276276

277277
function clampLightElevation(value: number): number {
278-
return Math.max(-90, Math.min(90, value));
278+
return Math.max(0, Math.min(90, value));
279279
}
280280

281281
function lightDirectionFromAngles(azimuth: number, elevation: number): ReactVec3 {

0 commit comments

Comments
 (0)