diff options
Diffstat (limited to 'reference/opt/shaders/legacy/vert/struct-varying.legacy.vert')
-rw-r--r-- | reference/opt/shaders/legacy/vert/struct-varying.legacy.vert | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/reference/opt/shaders/legacy/vert/struct-varying.legacy.vert b/reference/opt/shaders/legacy/vert/struct-varying.legacy.vert index 8520e2d5..66136d27 100644 --- a/reference/opt/shaders/legacy/vert/struct-varying.legacy.vert +++ b/reference/opt/shaders/legacy/vert/struct-varying.legacy.vert @@ -11,16 +11,10 @@ varying vec2 vout_b; void main() { - { - Output vout = Output(vec4(0.5), vec2(0.25)); - vout_a = vout.a; - vout_b = vout.b; - } - { - Output vout = Output(vec4(0.5), vec2(0.25)); - vout_a = vout.a; - vout_b = vout.b; - } + vout_a = Output(vec4(0.5), vec2(0.25)).a; + vout_b = Output(vec4(0.5), vec2(0.25)).b; + vout_a = Output(vec4(0.5), vec2(0.25)).a; + vout_b = Output(vec4(0.5), vec2(0.25)).b; Output _22 = Output(vout_a, vout_b); vout_a = _22.a; vout_b = _22.b; |