diff options
author | dahlia | 2013-11-05 23:48:44 -0800 |
---|---|---|
committer | dahlia | 2013-11-05 23:48:44 -0800 |
commit | 0b4577d5b0b68e009d498c9ed27cd6cca9b7200f (patch) | |
tree | 74ed990de79137737f10215a9b6f2c0a64a327d9 | |
parent | add support for particle blending LSL functions (diff) | |
download | opensim-SC-0b4577d5b0b68e009d498c9ed27cd6cca9b7200f.zip opensim-SC-0b4577d5b0b68e009d498c9ed27cd6cca9b7200f.tar.gz opensim-SC-0b4577d5b0b68e009d498c9ed27cd6cca9b7200f.tar.bz2 opensim-SC-0b4577d5b0b68e009d498c9ed27cd6cca9b7200f.tar.xz |
add support for particle glow LSL functions
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 12 |
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; |