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 9d343f3 commit 549d567Copy full SHA for 549d567
src/RenderWebGL.js
@@ -2245,9 +2245,15 @@ class RenderWebGL extends EventEmitter {
2245
currentShader = newShader;
2246
gl.useProgram(currentShader.program);
2247
twgl.setBuffersAndAttributes(gl, currentShader, this._bufferInfo);
2248
- Object.assign(uniforms, {
2249
- u_projectionMatrix: projection
2250
- });
+ if (drawable.projection && drawMode !== 'straightAlpha' {
+ Object.assign(uniforms, {
+ u_projectionMatrix: drawable.projection
2251
+ });
2252
+ } else {
2253
2254
+ u_projectionMatrix: projection
2255
2256
+ }
2257
}
2258
2259
Object.assign(uniforms,
0 commit comments