mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-26 10:42:42 +01:00
shader: Add more shadowing tests
This commit is contained in:
parent
37cc30bc38
commit
909ba638a3
@ -88,6 +88,11 @@ func Foo(foo vec2) vec4 {
|
||||
var foo vec4
|
||||
r.z = foo.z
|
||||
}
|
||||
{
|
||||
r.y = foo.y
|
||||
var foo vec4
|
||||
r.z = foo.z
|
||||
}
|
||||
}
|
||||
return r
|
||||
}`,
|
||||
@ -101,6 +106,11 @@ func Foo(foo vec2) vec4 {
|
||||
(l2).y = (l3).y;
|
||||
(l2).z = (l4).z;
|
||||
}
|
||||
{
|
||||
vec4 l4 = vec4(0.0);
|
||||
(l2).y = (l3).y;
|
||||
(l2).z = (l4).z;
|
||||
}
|
||||
}
|
||||
l1 = l2;
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user