[LayaAir 2.0]2.2.0使用2d粒子报错
打开官网
https://layaair2.ldc2.layabox.com/demo2/?language=ch&category=2d&group=Particle&name=T2
laya2.2版本粒子使用报错,按F12看到下面信息
laya.core.js:2554 Uncaught TypeError: Failed to execute 'attachShader' on 'WebGL2RenderingContext': parameter 2 is not of type 'WebGLShader'.
at ParticleShader._compile (VM258 laya.core.js:2554)
at ParticleShader.recreateResource (VM258 laya.core.js:2529)
at new Shader (VM258 laya.core.js:2492)
at new ParticleShader (VM262 laya.particle.js:272)
at new ParticleShaderValue (VM262 laya.particle.js:283)
at new ParticleTemplate2D (VM262 laya.particle.js:301)
at Particle2D.setParticleSetting (VM262 laya.particle.js:535)
at new Particle2D (VM262 laya.particle.js:522)
at Particle_T2.onAssetsLoaded (<anonymous>:31:17)
at EventHandler.runWith (VM258 laya.core.js:848)
https://layaair2.ldc2.layabox.com/demo2/?language=ch&category=2d&group=Particle&name=T2
laya2.2版本粒子使用报错,按F12看到下面信息
laya.core.js:2554 Uncaught TypeError: Failed to execute 'attachShader' on 'WebGL2RenderingContext': parameter 2 is not of type 'WebGLShader'.
at ParticleShader._compile (VM258 laya.core.js:2554)
at ParticleShader.recreateResource (VM258 laya.core.js:2529)
at new Shader (VM258 laya.core.js:2492)
at new ParticleShader (VM262 laya.particle.js:272)
at new ParticleShaderValue (VM262 laya.particle.js:283)
at new ParticleTemplate2D (VM262 laya.particle.js:301)
at Particle2D.setParticleSetting (VM262 laya.particle.js:535)
at new Particle2D (VM262 laya.particle.js:522)
at Particle_T2.onAssetsLoaded (<anonymous>:31:17)
at EventHandler.runWith (VM258 laya.core.js:848)
没有找到相关结果
已邀请:
1 个回复
Aar0n
赞同来自: