MergeSpecularTextures is a utility that generates a single roughness/normalSpecularReflection/metallicness texture from 3 (optionally) provided separate textures.
Methods
-
<static> merge( [roughness] [, normalSpecular] [, metallicness])
-
Merges the 3 provided specular textures into a single one for use with
BasicMaterial.Parameters:
Name Type Argument Description roughnessTexture2D <optional>
The texture containing monochrome roughness data
normalSpecularTexture2D <optional>
The texture containing monochrome normal specular reflection data
metallicnessTexture2D <optional>
The texture containing monochrome normal metallicness reflection data
Returns:
A texture containing (roughness, normalSpecular, metallicness) on (r,g,b) respectively
- Type
- Texture2D