We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca31777 commit fe98b09Copy full SHA for fe98b09
src/data/examples/en/20_3D/10_passing_shader_uniforms.js
@@ -28,7 +28,7 @@
28
// lets send the resolution, mouse, and time to our shader
29
// the mouse x position will change the number of sides
30
// before sending mouse + time we modify the data so it's more easily usable by the shader
31
- theShader.setUniform('resolution', [width, height]);
+ theShader.setUniform('resolution', [width * displayDensity(), height * displayDensity()]);
32
theShader.setUniform('mouse', map(mouseX, 0, width, 0, 7));
33
theShader.setUniform('time', frameCount * 0.01);
34
0 commit comments