common
Class TrapColoringDistance
Object
common:Generic
common:TrapColoring
common:TrapColoringDistance
class
- TrapColoring:TrapColoringDistance
Ultra Fractal Source
Toggle UF Source Code Display
class TrapColoringDistance(TrapColoring) {
public:
func TrapColoringDistance(Generic pparent)
TrapColoring.TrapColoring(pparent)
endfunc
float func Result(TrapMode ptrapmode)
if (@p_autoscale)
return (ptrapmode.GetDistance(0) + ptrapmode.GetTexture(0)) / ptrapmode.GetThreshold()
else
return (ptrapmode.GetDistance(0) + ptrapmode.GetTexture(0))
endif
endfunc
default:
title = "Distance"
int param v_trapcoloringdistance
caption = "Version (TrapColoringDistance)"
default = 100
hint = "This version parameter is used to detect when a change has been made to the formula that is incompatible with the previous version. When that happens, this field will reflect the old version number to alert you to the fact that an alternate rendering is being used."
visible = @v_trapcoloringdistance < 100
endparam
bool param p_autoscale
caption = "Auto-scale Coloring"
default = true
hint = "If checked, coloring will be automatically scaled to match the trap threshold."
endparam
}
Methods inherited from class Object |
|
TrapColoringDistance
public TrapColoringDistance(Generic pparent)
TrapColoringDistance
public TrapColoringDistance()
Result
public float Result(TrapMode ptrapmode)
- Description copied from class:
TrapColoring
- get a final result
- Overrides:
Result
in class TrapColoring