getUniformVec3 method
- String name
Access the float binding for a vec3 uniform named name.
Example:
uniform float uScale;
uniform vec3 uScaledTime;
void updateShader(ui.FragmentShader shader) {
shader.getUniformFloat('uScale');
shader.getUniformVec3('uScaledTime');
}
Implementation
UniformVec3Slot getUniformVec3(String name) {
final List<UniformFloatSlot> slots = _getSlotsForUniform(name, 3);
return UniformVec3Slot._(slots[0], slots[1], slots[2]);
}