flashplatformsdk/Flash-Platform-SDK — Issue #2: aliases with negative constant doesn't work
Author: jramstedt
Created: 2011-10-18 08:15:41+00:00
State: open

Example:

alias fc2, CONST1(-1.0, 2.0, 0.0, 0.0);

tex ft2, texcoord, normalmap <2d, clamp, linear>
mul ft2.xyz, ft2.xyz, 2.0
add ft2.xyz, ft2.xyz, -1.0

Gives

Error: Numeric constant used that is not declared in a constant register.