Cleaner initialization of heightMinMax plus a comment in StandardMultilayerPBR_Common.azsli to indicate that the .lua needs to be updated if the .azsli enum changes.

Signed-off-by: amzn-tommy <waltont@amazon.com>
This commit is contained in:
amzn-tommy
2021-09-21 10:10:54 -07:00
parent d15d7c3a85
commit ed61f47b7f
2 changed files with 2 additions and 1 deletions
@@ -104,6 +104,7 @@ option bool o_layer3_enabled;
enum class DebugDrawMode { None, BlendMask, Displacement, FinalBlendWeights };
option DebugDrawMode o_debugDrawMode;
// If you modify this enum, you must update the BlendSourceUsesDisplacement function in StandardMultilayerPBR_Displacement.lua
enum class LayerBlendSource { BlendMaskTexture, BlendMaskVertexColors, Displacement, Displacement_With_BlendMaskTexture, Displacement_With_BlendMaskVertexColors, Fallback };
option LayerBlendSource o_layerBlendSource;
@@ -88,7 +88,7 @@ end
-- @return a table with two values {min,max}. Negative values are below the surface and positive values are above the surface.
function CalcOverallHeightRange(context)
local heightMinMax = {nil, nil}
local heightMinMax = {}
local function GetMergedHeightRange(heightMinMax, offset, factor)
top = offset