J3MLoader can now read the LightSpace attribute
This commit is contained in:
parent
01ed6db77c
commit
7ab9798ad7
@ -116,6 +116,17 @@ public class J3MLoader implements AssetLoader {
|
|||||||
technique.setLightMode(lm);
|
technique.setLightMode(lm);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// LightMode <SPACE>
|
||||||
|
private void readLightSpace(String statement) throws IOException{
|
||||||
|
String[] split = statement.split(whitespacePattern);
|
||||||
|
if (split.length != 2){
|
||||||
|
throw new IOException("LightSpace statement syntax incorrect");
|
||||||
|
}
|
||||||
|
TechniqueDef.LightSpace ls = TechniqueDef.LightSpace.valueOf(split[1]);
|
||||||
|
technique.setLightSpace(ls);
|
||||||
|
}
|
||||||
|
|
||||||
// ShadowMode <MODE>
|
// ShadowMode <MODE>
|
||||||
private void readShadowMode(String statement) throws IOException{
|
private void readShadowMode(String statement) throws IOException{
|
||||||
String[] split = statement.split(whitespacePattern);
|
String[] split = statement.split(whitespacePattern);
|
||||||
@ -415,6 +426,8 @@ public class J3MLoader implements AssetLoader {
|
|||||||
readShaderStatement(statement.getLine());
|
readShaderStatement(statement.getLine());
|
||||||
}else if (split[0].equals("LightMode")){
|
}else if (split[0].equals("LightMode")){
|
||||||
readLightMode(statement.getLine());
|
readLightMode(statement.getLine());
|
||||||
|
}else if (split[0].equals("LightSpace")){
|
||||||
|
readLightSpace(statement.getLine());
|
||||||
}else if (split[0].equals("ShadowMode")){
|
}else if (split[0].equals("ShadowMode")){
|
||||||
readShadowMode(statement.getLine());
|
readShadowMode(statement.getLine());
|
||||||
}else if (split[0].equals("WorldParameters")){
|
}else if (split[0].equals("WorldParameters")){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user