Normalmap is only calculated when generated texture is an input. git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7927 75d07b2b-3a1a-0410-a2c5-0572b91ccdca3.0
parent
48e4522da5
commit
cc403160be
@ -0,0 +1,37 @@ |
|||||||
|
package com.jme3.asset; |
||||||
|
|
||||||
|
|
||||||
|
/** |
||||||
|
* This key is mostly used to distinguish between textures that are loaded from |
||||||
|
* the given assets and those being generated automatically. Every generated |
||||||
|
* texture will have this kind of key attached. |
||||||
|
* |
||||||
|
* @author Marcin Roguski (Kaelthas) |
||||||
|
*/ |
||||||
|
public class GeneratedTextureKey extends TextureKey { |
||||||
|
/** |
||||||
|
* Constructor. Stores the name. Extension and folder name are empty |
||||||
|
* strings. |
||||||
|
* |
||||||
|
* @param name |
||||||
|
* the name of the texture |
||||||
|
*/ |
||||||
|
public GeneratedTextureKey(String name) { |
||||||
|
super(name); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public String getExtension() { |
||||||
|
return ""; |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public String getFolder() { |
||||||
|
return ""; |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public String toString() { |
||||||
|
return "Generated texture [" + name + "]"; |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue