diff --git a/lib/nodes/RSL/texture/pattern/HexTileF.xml b/lib/nodes/RSL/texture/pattern/HexTileF.xml new file mode 100644 index 0000000..55549d5 --- /dev/null +++ b/lib/nodes/RSL/texture/pattern/HexTileF.xml @@ -0,0 +1,87 @@ + + This function generates a hexagonal pattern ST space. + + + + + + + + + + + + + + + + + + + + + + + + + + x ) + { + if ( mod ( ttile / 2, 1 ) == 0.5 ) + stile -= 1; + ttile += 1; + if ( ss > width / 2 ) + stile += 1; + } + mixer = $(fuzzy1)( x - $(SQRT3) * halfwidth, x + $(SQRT3) * halfwidth, tfuzz, y ); + } + tileindex = stile + step_idx * ttile; + return ( 1 - mixer ); + } + + float $(S) = xcomp ( $(Q) ); + float $(T) = ycomp ( $(Q) ); + + float $(sfuzz) = filterwidth ( $(S) ); + float $(tfuzz) = filterwidth ( $(T) ); + if ( $(fuz) > 0 ) + { + $(sfuzz) *= $(fuz) * 10; + $(tfuzz) *= $(fuz) * 10; + } + $(mortar) = $(hextile) ( $(S), $(T), $(RAD), $(MW), $(sfuzz), $(tfuzz), $(step_idx), $(tileindex) ); + if ( $(invert) > 0 ) + $(mortar) = 1 - $(mortar); + ]]> + + diff --git a/lib/nodes/RSL/texture/pattern/HexagonalsF.xml b/lib/nodes/RSL/texture/pattern/HexagonalsF.xml deleted file mode 100644 index 6ea1da9..0000000 --- a/lib/nodes/RSL/texture/pattern/HexagonalsF.xml +++ /dev/null @@ -1,79 +0,0 @@ - - - - This function generates a hexagonal pattern. - - - - - - - - - - - - - - - - - - - - - - x ) - { - if ( mod ( ttile / 2, 1 ) == 0.5 ) - stile -= 1; - ttile += 1; - if ( ss > width / 2 ) - stile += 1; - } - mixer = $(fuzzy)( x - $(SQRT3) * halfwidth, x + $(SQRT3) * halfwidth, tfuzz, y ); - } - - return ( 1 - mixer ); - } - - float $(S) = xcomp ( $(Q) ); - float $(T) = ycomp ( $(Q) ); - - float $(sfuzz) = filterwidth ( $(S) ); - float $(tfuzz) = filterwidth ( $(T) ); - - $(result) = $(hexagonals) ( $(S), $(T), $(RAD), $(MW), $(sfuzz), $(tfuzz) ); - ]]> - - diff --git a/lib/nodes/imageViewer.xml b/lib/nodes/imageViewer.xml index cc157ef..9fad8ae 100644 --- a/lib/nodes/imageViewer.xml +++ b/lib/nodes/imageViewer.xml @@ -50,8 +50,9 @@ self.imageName = self.getInputParamValueByName ( selectedInput )