Explorar o código

Add precompute function

Fl0xer %!s(int64=7) %!d(string=hai) anos
pai
achega
b68345df37
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      h3d/scene/World.hx

+ 5 - 0
h3d/scene/World.hx

@@ -434,9 +434,14 @@ class World extends Object {
 		soil.material.shadows = true;
 	}
 
+	function precompute( e : WorldElement ) {
+
+	}
+
 	function initChunkElements( c : WorldChunk ) {
 		for( e in c.elements ) {
 			var model = e.model;
+			precompute(e);
 			for( g in model.geometries ) {
 				var b = c.buffers.get(g.m.bits);
 				if( b == null ) {