init(floatLiteral:)
Creates an object from single value.
Declaration
init(floatLiteral value: Float)Parameters
- value:
A value from 0.0 to 1.0 to use as the specular value for the material.
Discussion
RealityKit automatically draws specular highlights for physically based materials using the values of various properties, primarily roughness and metallic. Specular highlights are bright spots of reflected light that appear on shiny objects.
[Image]
While many real-world objects can be accurately and realistically simulated with just the core PBR properties, you can create additional realistic effects by augmenting the specular highlights.
This initializer creates a PhysicallyBasedMaterial.Specular object from a single value that applies to the entire material.