Fix motion blur
This commit is contained in:
parent
02453c2a97
commit
d2b7eb29fb
1 changed files with 5 additions and 5 deletions
|
|
@ -31,11 +31,11 @@ export const getUniversalRenderingContext = (
|
|||
result.isWebGL2 = true;
|
||||
}
|
||||
} else {
|
||||
result = (canvas.getContext('webgl') ||
|
||||
canvas.getContext('experimental-webgl', {
|
||||
...contextAttributes,
|
||||
alpha: false,
|
||||
})) as UniversalRenderingContext;
|
||||
result = (canvas.getContext('webgl', contextAttributes) ||
|
||||
canvas.getContext(
|
||||
'experimental-webgl',
|
||||
contextAttributes
|
||||
)) as UniversalRenderingContext;
|
||||
|
||||
if (!result) {
|
||||
throw new Error('Neither WebGL nor WebGL2 is supported');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue