From b263c2333afd701a45054160206c081cf65ef90d Mon Sep 17 00:00:00 2001 From: Rene Vega Date: Sat, 23 Sep 2023 16:41:50 -0700 Subject: [PATCH] =?UTF-8?q?Fix=20clamp:=20focus=20of=20the=20image=20(hard?= =?UTF-8?q?ness=20/=20softness)=20=E2=80=93=20range=20-20=20to=20+20.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs index c24903c8ac5..cd92adebfed 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs @@ -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;