getUniforms function
dynamic
getUniforms(
- dynamic splineTexture
Create a new set of uniforms for describing the curve modifier
@param { DataTexture } Texture which holds the curve description
Implementation
getUniforms(splineTexture) {
var uniforms = {
"spineTexture": {"value": splineTexture},
"pathOffset": {"type": 'f', "value": 0}, // time of path curve
"pathSegment": {"type": 'f', "value": 1}, // fractional length of path
"spineOffset": {"type": 'f', "value": 161},
"spineLength": {"type": 'f', "value": 400},
"flow": {"type": 'i', "value": 1},
};
return uniforms;
}