aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared
diff options
context:
space:
mode:
authordahlia2013-11-05 23:48:44 -0800
committerdahlia2013-11-05 23:48:44 -0800
commit0b4577d5b0b68e009d498c9ed27cd6cca9b7200f (patch)
tree74ed990de79137737f10215a9b6f2c0a64a327d9 /OpenSim/Region/ScriptEngine/Shared
parentadd support for particle blending LSL functions (diff)
downloadopensim-SC_OLD-0b4577d5b0b68e009d498c9ed27cd6cca9b7200f.zip
opensim-SC_OLD-0b4577d5b0b68e009d498c9ed27cd6cca9b7200f.tar.gz
opensim-SC_OLD-0b4577d5b0b68e009d498c9ed27cd6cca9b7200f.tar.bz2
opensim-SC_OLD-0b4577d5b0b68e009d498c9ed27cd6cca9b7200f.tar.xz
add support for particle glow LSL functions
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs12
1 files changed, 12 insertions, 0 deletions
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
6272 ps.BurstPartCount = 1; 6272 ps.BurstPartCount = 1;
6273 ps.BlendFuncSource = ScriptBaseClass.PSYS_PART_BF_SOURCE_ALPHA; 6273 ps.BlendFuncSource = ScriptBaseClass.PSYS_PART_BF_SOURCE_ALPHA;
6274 ps.BlendFuncDest = ScriptBaseClass.PSYS_PART_BF_ONE_MINUS_SOURCE_ALPHA; 6274 ps.BlendFuncDest = ScriptBaseClass.PSYS_PART_BF_ONE_MINUS_SOURCE_ALPHA;
6275 ps.PartStartGlow = 0.0f;
6276 ps.PartEndGlow = 0.0f;
6275 6277
6276 return ps; 6278 return ps;
6277 } 6279 }
@@ -6396,6 +6398,16 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6396 prules.BlendFuncDest = (byte)tmpi; 6398 prules.BlendFuncDest = (byte)tmpi;
6397 break; 6399 break;
6398 6400
6401 case (int)ScriptBaseClass.PSYS_PART_START_GLOW:
6402 tempf = (float)rules.GetLSLFloatItem(i + 1);
6403 prules.PartStartGlow = (float)tempf;
6404 break;
6405
6406 case (int)ScriptBaseClass.PSYS_PART_END_GLOW:
6407 tempf = (float)rules.GetLSLFloatItem(i + 1);
6408 prules.PartEndGlow = (float)tempf;
6409 break;
6410
6399 case (int)ScriptBaseClass.PSYS_SRC_TEXTURE: 6411 case (int)ScriptBaseClass.PSYS_SRC_TEXTURE:
6400 prules.Texture = ScriptUtils.GetAssetIdFromKeyOrItemName(m_host, rules.GetLSLStringItem(i + 1)); 6412 prules.Texture = ScriptUtils.GetAssetIdFromKeyOrItemName(m_host, rules.GetLSLStringItem(i + 1));
6401 break; 6413 break;