Class OpacityColoringFragment
Hierarchy (View Summary)
- ColoringFragmentBase
- OpacityColoringFragment
Index
Constructors
Methods
Methods
codeValue
Get the value in the unit interval [0, 1] computed with
.decode.minand.decode.maxParameters
- value: number
Returns number
decodeChannel
Get real world values of the given pixel (with rgb or rgba in [0, 1]) for the channel(s) specified in
.decode.channelParameters
- pixel: Pixel
Returns number | number[]
decodeValue
Given a value in the unit interval [0, 1] get the real world value bounded by
.decode.minand.decode.maxParameters
- value: number
Returns number
getBlendCode
Generate shader/GLSL code for blending
Parameters
- name: string
Returns string
getCode
Generate shader/GLSL code
Parameters
- name: string
Returns string
Was this helpful?
Use a single color, only change opacity based on the decoded value.