EntityCustomParameter: Index <=> Name
Posted: Tue Sep 18, 2012 6:00 am
Hello,
The HLSL/GLSL shaders usually don't have an ParameterIndex. They're using a ParameterName. So I would suggest a function like this:But please see it as an additional function, not as a replacement. Maybe the other function should be renamed to EntityCustomIndexedParameter to match the material script naming convention.
The HLSL/GLSL shaders usually don't have an ParameterIndex. They're using a ParameterName. So I would suggest a function like this:
Code: Select all
EntityCustomNamedParameter(#Entity, SubEntityIndex, ParameterName.s, Value1, Value2, Value3, Value4)