Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/content/examples/en/11_3D/06_Framebuffer_Blur/code.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Vertex shader code
let vertexShader = `
uniform mat4 uModelViewMatrix;
uniform mat4 uModelMatrix;
uniform mat4 uViewMatrix;
uniform mat4 uProjectionMatrix;
attribute vec3 aPosition;
Expand All @@ -16,7 +17,7 @@ void main() {
// copy position with a fourth coordinate for projection (1.0 is normal)
vec4 positionVec4 = vec4(aPosition, 1.0);
gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;
gl_Position = uProjectionMatrix * uViewMatrix * uModelMatrix * positionVec4;
}`;

// Fragment shader code
Expand Down