helios.backends.fury.tools.Uniforms¶
-
class
helios.backends.fury.tools.
Uniforms
(uniforms)[source]¶ Bases:
object
Creates an object which store and execute an uniform variable.
- Parameters
uniforms (list) – List of Uniform objects.
Examples
uniforms = [ Uniform(name='edgeWidth', uniform_type='f', value=edgeWidth)... ] CustomUniforms = Uniforms(markerUniforms) add_shader_callback( sq_actor, CustomUniforms) sq_actor.CustomUniforms = CustomUniforms sq_actor.CustomUniforms.edgeWidth = 0.5
Methods