Unity Products:Amplify Shader Editor/Decode Lightmap

From Amplify Creations Wiki
Jump to: navigation, search

Back to Node List

Decode Lightmap Node

The Decode Lightmap node decodes color from Unity lightmap (RGBM or dLDR depending on platform) set at its Value parameter.
NOTE: The Instructions input port is only visible over Scriptable Rendering Pipelined(Universal/Lightweight/HD) and represents an additional instruction value required by Unity's own DecodeLightmap helper function.
This value is used on the decode process and varies according to the current encoding. ASE will set Unity's default values for this port if no connection is made to it.

Node Parameter Description Default Value
Value Value to be decoded. Only visible if the respective input port is not connected. 0,0,0,0
Instructions Constant value used on decode process, varies according to type of encoding. Only visible on Scriptable Rendering Pipelines and if the respective input port is not connected. 0,0,0,0


Input Port Description Type
Value Value to be decoded. Float4
Instructions Constant value used on decode process, varies according to type of encoding. Float4

Back to Node List