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];
|
mat.ShaderParamData = new byte[0];
|
||||||
|
|
||||||
byte[] ParamData = WriteShaderParams(m, mat);
|
byte[] ParamData = WriteShaderParams(m, mat);
|
||||||
|
mat.ShaderParamData = ParamData;
|
||||||
if (ParamData.Length != mat.ShaderParamData.Length)
|
|
||||||
throw new Exception("Param size mis match!");
|
|
||||||
else
|
|
||||||
mat.ShaderParamData = ParamData;
|
|
||||||
|
|
||||||
WriteRenderInfo(m, mat);
|
WriteRenderInfo(m, mat);
|
||||||
WriteTextureRefs(m, mat, ResFile);
|
WriteTextureRefs(m, mat, ResFile);
|
||||||
|
Loading…
Reference in New Issue
Block a user