mirror of
https://github.com/sotrh/learn-wgpu.git
synced 2024-11-04 06:00:47 +00:00
Merge pull request #70 from kvark/patch-1
Fix a mismatch in light VS versus FS varying of v_color
This commit is contained in:
commit
b3eaf739aa
@ -2,7 +2,7 @@
|
||||
|
||||
layout(location=0) in vec3 a_position;
|
||||
|
||||
layout(location=0) out vec4 v_color;
|
||||
layout(location=0) out vec3 v_color;
|
||||
|
||||
layout(set=0, binding=0)
|
||||
uniform Uniforms {
|
||||
@ -23,5 +23,5 @@ void main() {
|
||||
vec3 v_position = a_position * scale + u_position;
|
||||
gl_Position = u_view_proj * vec4(v_position, 1);
|
||||
|
||||
v_color = vec4(u_color, 0);
|
||||
v_color = u_color;
|
||||
}
|
Loading…
Reference in New Issue
Block a user