Skip to content

Commit

Permalink
Fix clamp: focus of the image (hardness / softness) – range -20 to +2…
Browse files Browse the repository at this point in the history
…0. (#62)
  • Loading branch information
renevega authored Sep 24, 2023
1 parent feb9005 commit c27624d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4021,7 +4021,7 @@ private void SetProjectionParams(SceneObjectPart obj, LSL_Integer llprojection,
obj.Shape.ProjectionEntry = true;
obj.Shape.ProjectionTextureUUID = texID;
obj.Shape.ProjectionFOV = Util.Clamp((float)fov, 0, 3.0f);
obj.Shape.ProjectionFocus = Util.Clamp((float)focus, 0, 20.0f);
obj.Shape.ProjectionFocus = Util.Clamp((float)focus, -20.0f, 20.0f);
obj.Shape.ProjectionAmbiance = Util.Clamp((float)amb, 0, 1.0f);

obj.ParentGroup.HasGroupChanged = true;
Expand Down

0 comments on commit c27624d

Please sign in to comment.