Namespace: MergeSpecularTextures

MergeSpecularTextures

MergeSpecularTextures is a utility that generates a single roughness/normalSpecularReflection/metallicness texture from 3 (optionally) provided separate textures.

Author:
  • derschmale <http://www.derschmale.com>

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
roughness Texture2D <optional>

The texture containing monochrome roughness data

normalSpecular Texture2D <optional>

The texture containing monochrome normal specular reflection data

metallicness Texture2D <optional>

The texture containing monochrome normal metallicness reflection data

Returns:

A texture containing (roughness, normalSpecular, metallicness) on (r,g,b) respectively

Type
Texture2D