init(skybox:specular:diffuse:)
Creates an EnvironmentResource a skybox, specular and diffuse texture resources.
Declaration
@MainActor convenience init(skybox skyboxTexture: TextureResource?, specular specularTexture: TextureResource, diffuse diffuseTexture: TextureResource) throwsParameters
- skyboxTexture:
A skybox texture to preserve. If nil, derives a low-resolution proxy from other inputs for lower memory usage.
- specularTexture:
An image based light specular texture.
- diffuseTexture:
An image based light diffuse texture.