Reference Talk:Pigment Map

From POV-Wiki
Jump to navigation Jump to search

Unfortunately the new syntax diagram no longer reflects that `blend_mode` cannot be used when PIGMENT_MAP_BODY is just a PIGMENT_MAP_IDENTIFIER.

Both old and new syntax diagrams also erroneously identify the parameters after `blend_mode` and `blend_gamma` as optional (which they're not), plus some minor issues.

I'd suggest the following syntax diagrams:

PIGMENT_MAP:
  pigment_map { PIGMENT_MAP_BODY }
PIGMENT_MAP_BODY:
  PIGMENT_MAP_IDENTIFIER |
  [BLEND_MAP_MODIFIERS...] PIGMENT_MAP_ENTRY...
BLEND_MAP_MODIFIERS:
  blend_mode BLEND_MODE |
  blend_gamma FLOAT
BLEND_MODE:
  0 | 1 | 2 | 3
PIGMENT_MAP_ENTRY:
  [ Value PIGMENT_BODY ]
COLOR_MAP:
  color_map { COLOR_MAP_BODY } |
  colour_map { COLOR_MAP_BODY }
COLOR_MAP_BODY:
  COLOR_MAP_IDENTIFIER |
  [BLEND_MAP_MODIFIERS...] COLOR_MAP_ENTRY...
BLEND_MAP_MODIFIERS:
  blend_mode BLEND_MODE |
  blend_gamma FLOAT
BLEND_MODE:
  0 | 1 | 2 | 3
COLOR_MAP_ENTRY:
  [ Value COLOR ] | 
  [ Value_1, Value_2 color COLOR_1 color COLOR_2 ]

-Clipka 21:08, 23 July 2017 (UTC)