Skip to content

Commit 9eb350e

Browse files
author
PopcornFX Bot
committed
UnityPlugin: Release 2.20.11
1 parent c8a6bf4 commit 9eb350e

39 files changed

Lines changed: 61 additions & 82 deletions

Native/FxEffect.cpp

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -31,27 +31,6 @@
3131
__PK_API_BEGIN
3232
//----------------------------------------------------------------------------
3333

34-
namespace
35-
{
36-
CFloat4x4 RemoveScale(const CFloat4x4 &matrix)
37-
{
38-
CFloat4x4 m = matrix;
39-
40-
//m.StrippedXAxis() = -m.StrippedXAxis();
41-
42-
m.StrippedXAxis().Normalize();
43-
m.StrippedYAxis().Normalize();
44-
m.StrippedZAxis().Normalize();
45-
m.XAxis().w() = 0;
46-
m.YAxis().w() = 0;
47-
m.ZAxis().w() = 0;
48-
m.WAxis().w() = 1;
49-
return m;
50-
}
51-
}
52-
53-
//----------------------------------------------------------------------------
54-
5534
CPKFXEffect::CPKFXEffect(bool requiresGameThreadCollect, const CFloat4x4 &transforms /*= CFloat4x4::IDENTITY*/)
5635
: m_WorldVelCurrent(CFloat3::ZERO)
5736
, m_WorldVelPrevious(CFloat3::ZERO)
@@ -60,7 +39,7 @@ CPKFXEffect::CPKFXEffect(bool requiresGameThreadCollect, const CFloat4x4 &transf
6039
, m_AttributesDescriptor(null)
6140
, m_AttributesContainer(null)
6241
{
63-
m_WorldTransformsCurrent = RemoveScale(transforms);
42+
m_WorldTransformsCurrent = transforms;
6443
m_WorldTransformsPrevious = m_WorldTransformsCurrent;
6544

6645
m_Bounds.SetMin(CFloat3(-0.1f));
@@ -253,7 +232,7 @@ void CPKFXEffect::UnregisterAllEventCallback()
253232
void CPKFXEffect::UpdateTransforms(const CFloat4x4 &newTransforms)
254233
{
255234
m_WorldTransformsPrevious = m_WorldTransformsCurrent;
256-
m_WorldTransformsCurrent = RemoveScale(newTransforms);
235+
m_WorldTransformsCurrent = newTransforms;
257236
}
258237

259238
//----------------------------------------------------------------------------

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Unity PopcornFX Plugin
22

33
Integrates the **PopcornFX Runtime SDK** into **Unity** as a Plugin.
4-
* **Version:** `v2.20.10`
4+
* **Version:** `v2.20.11`
55
* **Unity:** `2019.4` to `2022.x`
66
* **Platforms:** `Windows`, `Linux`, `MacOS`, `iOS`, `Android`, `PS4`, `XboxOne`, `Switch`.
77
[Contact-us](https://www.popcornfx.com/contact-popcornfx/) to request access to the plugin for consoles.

com.persistant-studios.popcornfx.hdrp/Documentation~/popcornfx.hdrp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Unity PopcornFX Plugin
22
Integrates the **PopcornFX Runtime SDK** into **Unity** as a Plugin.
3-
* **Version:** `v2.20.10`
3+
* **Version:** `v2.20.11`
44
* **Unity:** `2019.4` to `2021.x`
55
* **Platforms:** `Windows`, `Linux`, `MacOS`, `iOS`, `Android`, `PS4`, `XboxOne`, `Switch`. [Contact-us](http://www.popcornfx.com/contact-us/) for more information.
66

com.persistant-studios.popcornfx.hdrp/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Unity PopcornFX Plugin
22

33
Integrates the **PopcornFX Runtime SDK** into **Unity** as a Plugin.
4-
* **Version:** `v2.20.10`
4+
* **Version:** `v2.20.11`
55
* **Unity:** `2019.4` to `2022.x`
66
* **Platforms:** `Windows`, `Linux`, `MacOS`, `iOS`, `Android`, `PS4`, `XboxOne`, `Switch`.
77
[Contact-us](https://www.popcornfx.com/contact-popcornfx/) to request access to the plugin for consoles.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": "com.persistant-studios.popcornfx.hdrp",
33
"description": "HDRP Materials for PopcornFX.",
4-
"version": "2.20.10",
4+
"version": "2.20.11",
55
"unity": "2020.2",
66
"unityRelease": "",
77
"displayName": "PopcornFX HDRP",
88
"dependencies": {
99
"com.unity.render-pipelines.core": "10.2.2",
1010
"com.unity.render-pipelines.high-definition": "10.2.2",
11-
"com.persistant-studios.popcornfx": "2.20.10"
11+
"com.persistant-studios.popcornfx": "2.20.11"
1212
}
1313
}

com.persistant-studios.popcornfx.urp/Documentation~/popcornfx.urp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Unity PopcornFX Plugin
22
Integrates the **PopcornFX Runtime SDK** into **Unity** as a Plugin.
3-
* **Version:** `v2.20.10`
3+
* **Version:** `v2.20.11`
44
* **Unity:** `2017.4` to `2021.x`
55
* **Platforms:** `Windows`, `Linux`, `MacOS`, `iOS`, `Android`, `PS4`, `XboxOne`, `Switch`. [Contact-us](http://www.popcornfx.com/contact-us/) for more information.
66

com.persistant-studios.popcornfx.urp/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Unity PopcornFX Plugin
22

33
Integrates the **PopcornFX Runtime SDK** into **Unity** as a Plugin.
4-
* **Version:** `v2.20.10`
4+
* **Version:** `v2.20.11`
55
* **Unity:** `2019.4` to `2022.x`
66
* **Platforms:** `Windows`, `Linux`, `MacOS`, `iOS`, `Android`, `PS4`, `XboxOne`, `Switch`.
77
[Contact-us](https://www.popcornfx.com/contact-popcornfx/) to request access to the plugin for consoles.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": "com.persistant-studios.popcornfx.urp",
33
"description": "URP Materials for PopcornFX.",
4-
"version": "2.20.10",
4+
"version": "2.20.11",
55
"unity": "2020.2",
66
"unityRelease": "",
77
"displayName": "PopcornFX URP",
88
"dependencies": {
99
"com.unity.render-pipelines.core": "10.2.2",
1010
"com.unity.render-pipelines.universal": "10.2.2",
11-
"com.persistant-studios.popcornfx": "2.20.10"
11+
"com.persistant-studios.popcornfx": "2.20.11"
1212
}
1313
}

com.persistant-studios.popcornfx/Documentation~/popcornfx.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Unity PopcornFX Plugin
22
Integrates the **PopcornFX Runtime SDK** into **Unity** as a Plugin.
3-
* **Version:** `v2.20.10`
3+
* **Version:** `v2.20.11`
44
* **Unity:** `2017.4` to `2021.x`
55
* **Platforms:** `Windows`, `Linux`, `MacOS`, `iOS`, `Android`, `PS4`, `XboxOne`, `Switch`. [Contact-us](http://www.popcornfx.com/contact-us/) for more information.
66

com.persistant-studios.popcornfx/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Unity PopcornFX Plugin
22

33
Integrates the **PopcornFX Runtime SDK** into **Unity** as a Plugin.
4-
* **Version:** `v2.20.10`
4+
* **Version:** `v2.20.11`
55
* **Unity:** `2019.4` to `2022.x`
66
* **Platforms:** `Windows`, `Linux`, `MacOS`, `iOS`, `Android`, `PS4`, `XboxOne`, `Switch`.
77
[Contact-us](https://www.popcornfx.com/contact-popcornfx/) to request access to the plugin for consoles.

0 commit comments

Comments
 (0)