You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello there,
I am currently going through your Learn Wgpu and learning wgpu.
Doing 3rd challenge and comparing it with your solution I have noticed a big difference between using dedicated position variable and reusing clip_position. Reusing clip_position will give me 1 colored, light yellow, triangle but using dedicated variable will yield multi-colored triangle.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello there,
I am currently going through your
Learn Wgpu
and learning wgpu.Doing 3rd challenge and comparing it with your solution I have noticed a big difference between using dedicated
position
variable and reusingclip_position
. Reusingclip_position
will give me 1 colored, light yellow, triangle but using dedicated variable will yield multi-colored triangle.I have changed this
learn-wgpu/code/beginner/tutorial3-pipeline/src/challenge.wgsl
Line 24 in 64de216
to this:
return vec4<f32>(in.clip_position.xy, 0.5, 1.0);
(or this:return vec4<f32>(in.clip_position[0], in.clip_position[1], 0.5, 1.0);
, etc)What's the cause of this big change ?
Beta Was this translation helpful? Give feedback.
All reactions