Test WebGL2 shader

This commit is contained in:
redphx
2024-10-12 11:14:55 +07:00
parent 71dcaf4b07
commit 0164423e45
5 changed files with 24 additions and 18 deletions

View File

@@ -124,7 +124,7 @@ export class WebGL2Player {
private setupShaders() {
BxLogger.info(LOG_TAG, 'Setting up', getPref(PrefKey.VIDEO_POWER_PREFERENCE));
const gl = this.$canvas.getContext('webgl', {
const gl = this.$canvas.getContext('webgl2', {
isBx: true,
antialias: true,
alpha: false,