[general] name = GI Stage; comments = Use as light blocker for GI skylight.; a1_min = 0; a1_max = 180; a1_steps = 40; a2_min = 0.001; a2_max = 2; a2_steps = 40; [param] name = a; title = Stagewidth; default = 1; min = 0.1; max = 10; [param] name = b; title = Skyheight; default = 1; min = 0.1; max = 10; [formula] I1 = linstep(0.99999999, 1, A2); I2 = linstep(2, 2.0000001, A2); C2 = a + cos((A2-1) * 180 - 90); X = 5 * ((1-I1) * a * A2 * cos(A1) + (I1-I2) * C2 * cos(A1) + I2 * (a - a * (A2 - 2)) * cos(A1)); Y = 5 * ((I1-I2) * (b + sin((A2-1) * 180 - 90) * b) + I2 * 2 * b); Z = 5 * ((1-I1) * a * A2 * sin(A1) + (I1-I2) * C2 * sin(A1) + I2 * (a - a * (A2 - 2)) * sin(A1)); [preset] name = default; a = 1; b = 1; a1_min = 0; a1_max = 180; a1_steps = 40; a2_min = 0.001; a2_max = 2; a2_steps = 40;