Update to cope with the new JME world order.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3702 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -28,6 +28,7 @@ import com.jme.math.Vector3f;
|
|||||||
import com.jme.renderer.ColorRGBA;
|
import com.jme.renderer.ColorRGBA;
|
||||||
import com.jme.scene.shape.Box;
|
import com.jme.scene.shape.Box;
|
||||||
import com.jme.util.LoggingSystem;
|
import com.jme.util.LoggingSystem;
|
||||||
|
import com.jme.util.geom.BufferUtils;
|
||||||
|
|
||||||
import com.threerings.util.Name;
|
import com.threerings.util.Name;
|
||||||
|
|
||||||
@@ -67,7 +68,7 @@ public class JabberApp extends JmeApp
|
|||||||
for (int i = 0; i < 24; i++) {
|
for (int i = 0; i < 24; i++) {
|
||||||
colors[i] = ColorRGBA.randomColor();
|
colors[i] = ColorRGBA.randomColor();
|
||||||
}
|
}
|
||||||
t.setColors(colors);
|
t.setColorBuffer(BufferUtils.createFloatBuffer(colors));
|
||||||
_root.attachChild(t);
|
_root.attachChild(t);
|
||||||
_root.updateRenderState();
|
_root.updateRenderState();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user