Class ShaderNodeDefinitionKey

java.lang.Object
com.jme3.asset.AssetKey<List<ShaderNodeDefinition>>
com.jme3.asset.ShaderNodeDefinitionKey
All Implemented Interfaces:
Savable, Cloneable

public class ShaderNodeDefinitionKey extends AssetKey<List<ShaderNodeDefinition>>
Used for loading shader nodes definition Determines whether the definition will be loaded with or without its documentation
  • Constructor Details

    • ShaderNodeDefinitionKey

      public ShaderNodeDefinitionKey(String name)
      creates a ShaderNodeDefinitionKey
      Parameters:
      name - the name of the asset to load
    • ShaderNodeDefinitionKey

      public ShaderNodeDefinitionKey()
      creates a ShaderNodeDefinitionKey
  • Method Details

    • getCacheType

      public Class<? extends AssetCache> getCacheType()
      Overrides:
      getCacheType in class AssetKey<List<ShaderNodeDefinition>>
      Returns:
      The preferred cache class for this asset type. Specify "null" if caching is to be disabled. By default, the SimpleAssetCache is returned.
    • isLoadDocumentation

      public boolean isLoadDocumentation()
      Returns:
      true if the asset loaded with this key will contain its documentation
    • setLoadDocumentation

      public void setLoadDocumentation(boolean loadDocumentation)
      sets to true to load the documentation along with the ShaderNodeDefinition
      Parameters:
      loadDocumentation - true to load the documentation along with the ShaderNodeDefinition