فهرست منبع

fixes wrt memory layout

Nicolas Cannasse 3 سال پیش
والد
کامیت
d5a893d79b
1فایلهای تغییر یافته به همراه8 افزوده شده و 8 حذف شده
  1. 8 8
      h3d/scene/MeshBatch.hx

+ 8 - 8
h3d/scene/MeshBatch.hx

@@ -38,13 +38,18 @@ class MeshBatchPart {
 **/
 class MeshBatch extends MultiMaterial {
 
+	static var modelViewID = hxsl.Globals.allocID("global.modelView");
+	static var modelViewInverseID = hxsl.Globals.allocID("global.modelViewInverse");
+	static var MAX_BUFFER_ELEMENTS = 4096;
+
 	var instanced : h3d.prim.Instanced;
 	var dataPasses : BatchData;
-	var modelViewID = hxsl.Globals.allocID("global.modelView");
-	var modelViewInverseID = hxsl.Globals.allocID("global.modelViewInverse");
 	var needUpload = false;
 
-	static var MAX_BUFFER_ELEMENTS = 4096;
+	/**
+		Set if shader list or shader constants has changed, before calling begin()
+	**/
+	public var shadersChanged = true;
 
 	/**
 		The number of instances on this batch
@@ -57,11 +62,6 @@ class MeshBatch extends MultiMaterial {
 	public var worldPosition : Matrix;
 	var invWorldPosition : Matrix;
 
-	/**
-		Set if shader list or shader constants has changed, before calling begin()
-	**/
-	public var shadersChanged = true;
-
 	/**
 		Tells the mesh batch to draw only a subpart of the primitive
 	**/