Package com.jme3.asset

Examples of com.jme3.asset.BlenderKey.shouldLoad()


//                        if (blenderKey.isLoadUnlinkedAssets() && blenderKey.shouldLoad(FeaturesToLoad.MATERIALS)) {
//                            loadingResults.addMaterial(this.toMaterial(block.getStructure(blenderContext)));
//                        }
//                        break;
                    case FileBlockHeader.BLOCK_SC00:// Scene
                        if (blenderKey.shouldLoad(FeaturesToLoad.SCENES)) {
                            sceneBlocks.add(block);
                        }
                        break;
                    case FileBlockHeader.BLOCK_WO00:// World
                        if (blenderKey.shouldLoad(FeaturesToLoad.WORLD)) {
View Full Code Here


                        if (blenderKey.shouldLoad(FeaturesToLoad.SCENES)) {
                            sceneBlocks.add(block);
                        }
                        break;
                    case FileBlockHeader.BLOCK_WO00:// World
                        if (blenderKey.shouldLoad(FeaturesToLoad.WORLD)) {
                            Structure worldStructure = block.getStructure(blenderContext);
                            String worldName = worldStructure.getName();
                            if (blenderKey.getUsedWorld() == null || blenderKey.getUsedWorld().equals(worldName)) {
                                LandscapeHelper landscapeHelper = blenderContext.getHelper(LandscapeHelper.class);
                                Light ambientLight = landscapeHelper.toAmbientLight(worldStructure);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.