Exemple #1
0
 def vec_attr(buffer: ak.frag, cl: gl.inout_p[gl.vec4]) -> None:
     cl.x = buffer.time * 12 + gl.outer(arg_value)
Exemple #2
0
 def gen() -> ak.LEntryFragFn:
     return lambda e, b, c: e(module_global_add(1, 2) * gl.outer(outer_value))
 def gen2() -> ak.LEntryPolyFn:
     return lambda e, b, p: (
         e((p.y * gl.outer(global_speed)) + (b.time * gl.outer(speed) * gl.sin(12)))
     )
 def gen1() -> ak.LEntryFragFn:
     return lambda e, b, c: (
         e(compiler_fixtures.boost_add(1, gl.outer(global_speed)) + (gl.outer(speed) * gl.sin(12)))
     )
 def gen1() -> ak.LEntryFragFn:
     return lambda e, b, c: e(gl.outer(global_speed) + (gl.outer(speed) * gl.sin(12)))
 def gen1() -> ak.LEntryFragFn:
     return (
         lambda e, b, c: e((c.y * gl.outer(global_speed)) + (b.time * gl.outer(speed) * gl.sin(12)))
     )
 def gen2() -> ak.LEntryFragFn:
     return lambda e, b, c: (
         e(z := gl.outer(speed) * gl.sin(b.time)).tp(float) |
         e(compiler_fixtures.boost_add(1, gl.outer(global_speed)) + z)
     )
 def gen() -> ak.LEntryFragFn:
     return lambda e, b, color: ((
         (e(color.x) << e(gl.outer(speed))) |
         (e(y := 12.1).tp(float) | e(y))
     ))
 def gen2() -> ak.LEntryFragFn:
     return lambda e, b, c: e(c.x) << e(gl.outer(speed)) | e(y := gl.vec2(1, 2)).tp(gl.vec2) | e(y)
 def gen() -> ak.LEntryFragFn:
     return lambda e, b, c: e(c.x) << e(gl.outer(speed)) | e(y := 12.1).tp(float) | e(y)
 def gen2() -> ak.LEntryFragFn:
     return lambda e, b, c: e((x := gl.outer(speed))).tp(int)  # noqa: F841
 def gen2() -> ak.LEntryFragFn:
     return lambda e, b, c: e(module_global_poly(1, 2) + (gl.outer(speed) * gl.sin(12)))
Exemple #13
0
 def vec_attr(buffer: ak.frag, color: gl.inout_p[gl.vec4]) -> None:
     color.x = buffer.time * module_global_add(
         12, 1) * compiler_fixtures.boost_add(20, gl.outer(ddd))