aboutsummaryrefslogtreecommitdiff
path: root/NvBlast/examples/UnityExample/Assets/Plugins/Blast/NvBlastExtShadersWrapper.cs
diff options
context:
space:
mode:
authorBryan Galdrikian <[email protected]>2017-02-24 09:32:20 -0800
committerBryan Galdrikian <[email protected]>2017-02-24 09:32:20 -0800
commite1bf674c16e3c8472b29574159c789cd3f0c64e0 (patch)
tree9f0cfce09c71a2c27ff19589fcad6cd83504477c /NvBlast/examples/UnityExample/Assets/Plugins/Blast/NvBlastExtShadersWrapper.cs
parentfirst commit (diff)
downloadblast-e1bf674c16e3c8472b29574159c789cd3f0c64e0.tar.xz
blast-e1bf674c16e3c8472b29574159c789cd3f0c64e0.zip
Updating to [email protected] and [email protected] with a new directory structure.
NvBlast folder is gone, files have been moved to top level directory. README is changed to reflect this.
Diffstat (limited to 'NvBlast/examples/UnityExample/Assets/Plugins/Blast/NvBlastExtShadersWrapper.cs')
-rw-r--r--NvBlast/examples/UnityExample/Assets/Plugins/Blast/NvBlastExtShadersWrapper.cs42
1 files changed, 0 insertions, 42 deletions
diff --git a/NvBlast/examples/UnityExample/Assets/Plugins/Blast/NvBlastExtShadersWrapper.cs b/NvBlast/examples/UnityExample/Assets/Plugins/Blast/NvBlastExtShadersWrapper.cs
deleted file mode 100644
index 68b311d..0000000
--- a/NvBlast/examples/UnityExample/Assets/Plugins/Blast/NvBlastExtShadersWrapper.cs
+++ /dev/null
@@ -1,42 +0,0 @@
-using System;
-using System.Collections;
-using System.Collections.Generic;
-using System.Runtime.InteropServices;
-using UnityEngine;
-
-[StructLayout(LayoutKind.Sequential)]
-public class NvBlastExtRadialDamageDesc
-{
- public float compressive; //!< compressive (radial) damage component
- public float p0;
- public float p1;
- public float p2;
- public float minRadius; //!< inner radius of damage action
- public float maxRadius; //!< outer radius of damage action
-};
-
-[StructLayout(LayoutKind.Sequential)]
-public class NvBlastExtMaterial
-{
- public float singleChunkThreshold; //!< subsupport chunks only take damage surpassing this value
- public float graphChunkThreshold; //!< support chunks only take damage surpassing this value
- public float bondTangentialThreshold; //!< bond only take damage surpassing this value
- public float bondNormalThreshold; //!< currently unused - forward damage propagation
- public float damageAttenuation; //!< factor of damage attenuation while forwarding
-};
-
-
-public static class NvBlastExtShadersWrapper
-{
- public const string DLL_NAME = "NvBlastExtShaders" + NvBlastWrapper.DLL_POSTFIX + "_" + NvBlastWrapper.DLL_PLATFORM;
-
- #region Dll
- [DllImport(DLL_NAME)]
- private static extern bool NvBlastExtDamageActorRadialFalloff(IntPtr actor, NvBlastFractureBuffers buffers, NvBlastExtRadialDamageDesc damageDescBuffer, UInt32 damageDescCount, NvBlastExtMaterial material, NvBlastWrapper.NvBlastLog logFn, NvBlastTimers timers);
- #endregion
-
- public static bool DamageRadialFalloff(this NvBlastActor actor, NvBlastFractureBuffers buffers, NvBlastExtRadialDamageDesc damageDescBuffer, UInt32 damageDescCount, NvBlastExtMaterial material)
- {
- return NvBlastExtDamageActorRadialFalloff(actor.ptr, buffers, damageDescBuffer, damageDescCount, material, NvBlastWrapper.Log, null);
- }
-} \ No newline at end of file