2020-08-09 16:40:41 +02:00
|
|
|
package main
|
|
|
|
|
|
|
|
func Foo(foo vec2) vec4 {
|
|
|
|
var r vec4
|
|
|
|
{
|
|
|
|
r.x = foo.x
|
|
|
|
var foo vec3
|
|
|
|
{
|
|
|
|
r.y = foo.y
|
|
|
|
var foo vec4
|
|
|
|
r.z = foo.z
|
|
|
|
}
|
|
|
|
var bar vec3
|
|
|
|
{
|
|
|
|
r.y = foo.y
|
|
|
|
var foo vec4
|
|
|
|
r.z = bar.z
|
2020-09-17 10:29:31 +02:00
|
|
|
_ = foo
|
2020-08-09 16:40:41 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
return r
|
|
|
|
}
|