function getSourceValueStringScalar(classProperty, metadataProperty) {
  let result = `float(value)`;

  // The 'hasValueTransform' indicates whether the property
  // (or its class property) did define an 'offset' or 'scale'.
  // Even when they had not been defined in the JSON, they are
  // defined in the object, with default values.
  if (metadataProperty.hasValueTransform) {
    const offset = metadataProperty.offset;
    const scale = metadataProperty.scale;
    result = unapplyValueTransform(result, offset, scale);
  }
  if (!classProperty.normalized) {
    result = unnormalize(result, classProperty.componentType);
  }
  return result;
}
Creates a shader statement that returns the value of the specified
property, normalized to the range [0, 1].

@param {MetadataClassProperty} classProperty The class property
@param {object} metadataProperty The metadata property, either
a `PropertyTextureProperty` or a `PropertyAttributeProperty`
@returns {string} The string