class TMA_TrapColoringModulatedIter(common.ulb:TrapColoring) {
public:
float func Result(TrapMode pTrapMode)
return ((real(@colorFn((pTrapMode.getIteration(0)-@tz1)*@tz2)^@tz3) % @iter_mod) / @iter_mod ) + ptrapmode.GetTexture(0)
endfunc
default:
title = "Modulated Iter +"
float param iter_mod
caption = "No. of Colors"
default = 4
hint = "The number of color ranges. Decimal values allowed"
endparam
func colorFn
caption = "Coloring Mode Fn"
default = ident()
hint = "Changes the gradient mapping onto the elements"
endfunc
complex param tz1
caption = "Color Offset"
default = (0,0)
hint = "Changes the gradient mapping onto the elements"
endparam
complex param tz2
caption = "Color Strength"
default = (1,0)
hint = "Changes the gradient mapping onto the elements"
endparam
complex param tz3
caption = "Color Power"
default = (1,0)
hint = "Changes the gradient mapping onto the elements"
endparam
}