Examples of ShaderNodeDefinitionKey


Examples of com.jme3.asset.ShaderNodeDefinitionKey

     *
     * @param statements the list of statements to parse
     * @throws IOException
     */
    public void readNodesDefinitions(List<Statement> statements) throws IOException {
        readNodesDefinitions(statements, new ShaderNodeDefinitionKey());
    }
View Full Code Here

Examples of com.jme3.asset.ShaderNodeDefinitionKey

        ShaderNodeDefinition def = getNodeDefinitions().get(defName);
        if (def == null) {
            if (defLine.length == 3) {
                List<ShaderNodeDefinition> defs = null;
                try {
                    defs = assetManager.loadAsset(new ShaderNodeDefinitionKey(defLine[2].trim()));
                } catch (AssetNotFoundException e) {
                    throw new MatParseException("Couldn't find " + defLine[2].trim(), statement, e);
                }

                for (ShaderNodeDefinition definition : defs) {
View Full Code Here

Examples of com.jme3.asset.ShaderNodeDefinitionKey

    public Object load(AssetInfo assetInfo) throws IOException {
        AssetKey k = assetInfo.getKey();
        if (!(k instanceof ShaderNodeDefinitionKey)) {
            throw new IOException("ShaderNodeDefinition file must be loaded via ShaderNodeDefinitionKey");
        }
        ShaderNodeDefinitionKey key = (ShaderNodeDefinitionKey) k;
        loaderDelegate = new ShaderNodeLoaderDelegate();

        InputStream in = assetInfo.openStream();
        List<Statement> roots = BlockLanguageParser.parse(in);
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.