shaderText+=" result = "+lowerStructName+"."+debugField.fieldName+".xxx * 0.5 + 0.5;\n";
}
else
else
{
shaderText+=" result = "+lowerStructName+"."+debugField.fieldName+".xxx;\n";
}
{
shaderText+=" result = "+lowerStructName+"."+debugField.fieldName+" * 0.5 + 0.5;\n";
}
else
else
}
}
}
elseif(debugField.fieldType==typeof(Vector4))
{
}
else// This case left is suppose to be a complex structure. Either we don't support it or it is an enum. Consider it is an enum with GetIndexColor, user can override it if he want.
{
shaderText+=" result = GetIndexColor("+lowerStructName+"."+debugField.fieldName+");\n";
shaderText+=" result = GetIndexColor("+lowerStructName+"."+debugField.fieldName+");\n";