at the pub now and thought how many times I type common/matdefs/misc/unshaded.j3md and always make mistakes. Can’t u make Material.UNSHADED static variable or somefing? Plz thanks u
:? is it so hard?
but if so, then agree
wait, you’re in a pub working on jme? Aren’t there things like beer and ladies there?
you can just drag a material from the sdk palette panel to get the path
Or, you could make it yourself. What you think?
[java]static class Utils {
static AssetManager am;
public static final String unshaded = "Common/MatDefs/Misc/Unshaded.j3md";
public static void init(AssetManager asset) {
am = asset;
}
public static Material unshaded() {
return new Material(am, unshaded);
}
}[/java]
Not 100%, but does the job.
@Sploreg said:
wait, you're in a pub working on jme? Aren't there things like beer and ladies there?
I think he was thinking about jME. Can you blame him? Who wants to think about booze or women when jMonkeyEngine (the world's greatest cross-platform, open source, Java, etc, etc game engine) is waiting for you at home?
As we don’t always expect the users to use our shaders but maybe adapted versions we also expect the users to make such constants for themselves
@normen said:
As we don't always expect the users to use our shaders but maybe adapted versions we also expect the users to make such constants for themselves ;)
Wrapping the separate threads up: The hotel will provide you the room but not necessarily the entertainment. Unless you like what you see in the lobby...
I have a dozen of util classes through the my project Anyway, isn’t this a bad place for such topic?
@shirkit said:
Anyway, isn't this a bad place for such topic?
Yeah but considering he was probably drunk that's not that bad... :D