|
|
@ -241,7 +241,7 @@ uniform Uniforms {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
void main() {
|
|
|
|
void main() {
|
|
|
|
v_tex_coords = a_tex_coords; // UPDATED!
|
|
|
|
v_tex_coords = a_tex_coords;
|
|
|
|
gl_Position = u_view_proj * vec4(a_position, 1.0); // 3.
|
|
|
|
gl_Position = u_view_proj * vec4(a_position, 1.0); // 3.
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|
|
|
|
```
|
|
|
@ -357,7 +357,6 @@ impl CameraController {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
This code is not perfect. The camera slowly moves back when you rotate it. It works for our purposes though. Feel free to improve it!
|
|
|
|
This code is not perfect. The camera slowly moves back when you rotate it. It works for our purposes though. Feel free to improve it!
|
|
|
|