Title: When do sliders normalize? Post by: Patryk Kizny on July 12, 2015, 11:10:11 PM What does determine if a uniform vec3 slider will behave as an auto-normalizing one and when it would let me adjust its components separately and above 1.0 limit?
Title: Re: When do sliders normalize? Post by: cKleinhuis on July 12, 2015, 11:37:38 PM it is decided by the script using them, as far as i know fragmentariums has not a dedicated direction input elements ( like synthclipse has :tease: ),
you may play with it by finding the "normalize()" call in the shader script Title: Re: When do sliders normalize? Post by: 3dickulus on July 13, 2015, 02:56:11 AM Code: uniform vec3 Direction; slider[(0,0,0),(0,1,0),(0,0,0)] NotLockable 1st (0,0,0) = minimum 2nd (0,1,0) = current value 3rd (0,0,0) = maximum when you define a vec3 slider, if minimum == maximum == 0 it should get normalized at the widget input level, so, before it gets to the shader. afaik this is how to define a dedicated Direction input :hmh: :tease: Title: Re: When do sliders normalize? Post by: Patryk Kizny on July 14, 2015, 12:39:25 PM Thanks! |