From 0b4577d5b0b68e009d498c9ed27cd6cca9b7200f Mon Sep 17 00:00:00 2001 From: dahlia Date: Tue, 5 Nov 2013 23:48:44 -0800 Subject: add support for particle glow LSL functions --- .../Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 86e8200..5663048 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -6272,6 +6272,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api ps.BurstPartCount = 1; ps.BlendFuncSource = ScriptBaseClass.PSYS_PART_BF_SOURCE_ALPHA; ps.BlendFuncDest = ScriptBaseClass.PSYS_PART_BF_ONE_MINUS_SOURCE_ALPHA; + ps.PartStartGlow = 0.0f; + ps.PartEndGlow = 0.0f; return ps; } @@ -6396,6 +6398,16 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api prules.BlendFuncDest = (byte)tmpi; break; + case (int)ScriptBaseClass.PSYS_PART_START_GLOW: + tempf = (float)rules.GetLSLFloatItem(i + 1); + prules.PartStartGlow = (float)tempf; + break; + + case (int)ScriptBaseClass.PSYS_PART_END_GLOW: + tempf = (float)rules.GetLSLFloatItem(i + 1); + prules.PartEndGlow = (float)tempf; + break; + case (int)ScriptBaseClass.PSYS_SRC_TEXTURE: prules.Texture = ScriptUtils.GetAssetIdFromKeyOrItemName(m_host, rules.GetLSLStringItem(i + 1)); break; -- cgit v1.1