Index: Horde3D.cs
===================================================================
--- Horde3D.cs (revision 338)
+++ Horde3D.cs (working copy)
@@ -1518,6 +1518,22 @@
}
///
+ /// Sets per-instance uniform data for a node.
+ ///
+ ///
+ /// This function sets the custom per-instance uniform data for a node that can be accessed
+ /// from within a shader. The specified number of floats is copied from the specified memory location.
+ /// Currently only Model nodes will store this data.
+ /// node for which data will be set
+ /// pointer to float array
+ /// number of floats to be copied
+ ///
+ public static void setNodeUniforms(int node, float[] uniformData, int count)
+ {
+ NativeMethodsEngine.h3dSetNodeUniforms(node, uniformData, count);
+ }
+
+ ///
/// This function checks recursively if the specified ray intersects the specified node or one of its children.
/// The function finds intersections relative to the ray origin and returns the number of intersecting scene
/// nodes. The ray is a line segment and is specified by a starting point (the origin) and a finite direction
@@ -1668,6 +1684,7 @@
///
/// Applies animation and/or geometry updates.
+ ///
///
/// This function applies skeletal animation and geometry updates to the specified model, depending on
/// the specified update flags. Geometry updates include morph targets and software skinning if enabled.
@@ -1675,7 +1692,7 @@
/// has to be called so that changed animation or morpher parameters will take effect.
///
/// handle to the Model node to be updated
- /// combination of H3DModelUpdate flags
+ /// combination of H3DModelUpdateFlags flags
public static void updateModel(int modelNode, int flags)
{
NativeMethodsEngine.h3dUpdateModel(modelNode, flags);
Index: Horde3D_Import.cs
===================================================================
--- Horde3D_Import.cs (revision 338)
+++ Horde3D_Import.cs (working copy)
@@ -238,8 +238,11 @@
[DllImport(ENGINE_DLL), SuppressUnmanagedCodeSecurity]
internal static extern int h3dGetNodeFindResult(int index);
-
+
[DllImport(ENGINE_DLL), SuppressUnmanagedCodeSecurity]
+ internal static extern void h3dSetNodeUniforms(int node, float[] uniformData, int count);
+
+ [DllImport(ENGINE_DLL), SuppressUnmanagedCodeSecurity]
internal static extern int h3dCastRay(int node, float ox, float oy, float oz, float dx, float dy, float dz, int numNearest);
[DllImport(ENGINE_DLL), SuppressUnmanagedCodeSecurity]