|
|
@ -114,8 +114,7 @@ public class Technique implements Savable { |
|
|
|
void notifySetParam(String paramName, VarType type, Object value) { |
|
|
|
void notifySetParam(String paramName, VarType type, Object value) { |
|
|
|
String defineName = def.getShaderParamDefine(paramName); |
|
|
|
String defineName = def.getShaderParamDefine(paramName); |
|
|
|
if (defineName != null) { |
|
|
|
if (defineName != null) { |
|
|
|
defines.set(defineName, type, value); |
|
|
|
needReload = defines.set(defineName, type, value); |
|
|
|
needReload = true; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
if (shader != null) { |
|
|
|
if (shader != null) { |
|
|
|
updateUniformParam(paramName, type, value); |
|
|
|
updateUniformParam(paramName, type, value); |
|
|
@ -128,8 +127,7 @@ public class Technique implements Savable { |
|
|
|
void notifyClearParam(String paramName) { |
|
|
|
void notifyClearParam(String paramName) { |
|
|
|
String defineName = def.getShaderParamDefine(paramName); |
|
|
|
String defineName = def.getShaderParamDefine(paramName); |
|
|
|
if (defineName != null) { |
|
|
|
if (defineName != null) { |
|
|
|
defines.remove(defineName); |
|
|
|
needReload = defines.remove(defineName); |
|
|
|
needReload = true; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
if (shader != null) { |
|
|
|
if (shader != null) { |
|
|
|
if (!paramName.startsWith("m_")) { |
|
|
|
if (!paramName.startsWith("m_")) { |
|
|
|