---
title: floatValue
framework: modelio
role: symbol
role_heading: Instance Property
path: modelio/mdlmaterialproperty/floatvalue
---

# floatValue

The scalar floating-point value for the material property.

## Declaration

```swift
var floatValue: Float { get set }
```

## Discussion

Discussion Scalar values are appropriate for some semantics, such as the MDLMaterialSemantic.specularTint semantic (which controls the balance between material and light colors in specular highlighting). Providing a float value for the material property applies that value for all pixels rendered using the material; to provide variation in the semantic’s value across a surface, use a grayscale texture image instead.

## See Also

### Working with a Material Property’s Value

- [stringValue](modelio/mdlmaterialproperty/stringvalue.md)
- [urlValue](modelio/mdlmaterialproperty/urlvalue.md)
- [textureSamplerValue](modelio/mdlmaterialproperty/texturesamplervalue.md)
- [color](modelio/mdlmaterialproperty/color.md)
- [float2Value](modelio/mdlmaterialproperty/float2value.md)
- [float3Value](modelio/mdlmaterialproperty/float3value.md)
- [float4Value](modelio/mdlmaterialproperty/float4value.md)
- [matrix4x4](modelio/mdlmaterialproperty/matrix4x4.md)
