Allow shader parameters to be adjusted in size
This commit is contained in:
parent
9c3ac9ae9f
commit
aa9cef7bb0
@ -421,11 +421,7 @@ namespace FirstPlugin
|
||||
mat.ShaderParamData = new byte[0];
|
||||
|
||||
byte[] ParamData = WriteShaderParams(m, mat);
|
||||
|
||||
if (ParamData.Length != mat.ShaderParamData.Length)
|
||||
throw new Exception("Param size mis match!");
|
||||
else
|
||||
mat.ShaderParamData = ParamData;
|
||||
mat.ShaderParamData = ParamData;
|
||||
|
||||
WriteRenderInfo(m, mat);
|
||||
WriteTextureRefs(m, mat, ResFile);
|
||||
|
Loading…
Reference in New Issue
Block a user