From ad4f74ebc9fa14fe786df3e61afd2254a544c154 Mon Sep 17 00:00:00 2001 From: Scott Westover Date: Fri, 29 Mar 2024 14:49:07 -0400 Subject: [PATCH] fixed shader example Signed-off-by: Scott Westover --- .../assets/js/{index-jn5zOyW8.js => index-BeJG9ziK.js} | 2 +- examples/shader-examples/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename examples/shader-examples/assets/js/{index-jn5zOyW8.js => index-BeJG9ziK.js} (99%) diff --git a/examples/shader-examples/assets/js/index-jn5zOyW8.js b/examples/shader-examples/assets/js/index-BeJG9ziK.js similarity index 99% rename from examples/shader-examples/assets/js/index-jn5zOyW8.js rename to examples/shader-examples/assets/js/index-BeJG9ziK.js index 89039ac..e1c4eed 100644 --- a/examples/shader-examples/assets/js/index-jn5zOyW8.js +++ b/examples/shader-examples/assets/js/index-BeJG9ziK.js @@ -6417,4 +6417,4 @@ uniform float uTest; void main() { gl_FragColor = vec4(uTest, 0.4, 0.723, 1.0); } -`;var At;class Dt extends Phaser.Renderer.WebGL.Pipelines.PostFXPipeline{constructor(ht){super({game:ht,fragShader:ie});Lt(this,At,void 0);Ft(this,At,0)}get progress(){return Rt(this,At)}set progress(ht){Ft(this,At,ht)}onPreRender(){this.set1f("uTest",Rt(this,At))}}At=new WeakMap;const Wt="BG";class se extends xt.Scene{constructor(){super({key:"DynamicColorPostFxScene"})}preload(){this.load.image(Wt,"assets/images/bg.png")}create(){var st;this.add.image(0,0,Wt).setOrigin(0),this.renderer.pipelines.addPostPipeline("DynamicColorPostFxPipeline",Dt),this.cameras.main.setPostPipeline(Dt),this.tweens.add({targets:this.cameras.main.getPostPipeline(Dt),progress:1,duration:2e3,delay:1e3,repeat:-1,yoyo:!0}),(st=this.input.keyboard)==null||st.once("keydown-SPACE",()=>{this.scene.start("WipePostFxScene")})}}const ne={type:xt.WEBGL,pixelArt:!0,scale:{parent:"game-container",width:1024,height:576,mode:xt.Scale.FIT,autoCenter:xt.Scale.CENTER_BOTH},backgroundColor:"#5c5b5b"},Mt=new xt.Game(ne);Mt.scene.add("NothingPostFxScene",Qt);Mt.scene.add("ColorPostFxScene",jt);Mt.scene.add("GreyScalePostFxScene",qt);Mt.scene.add("DynamicColorPostFxScene",se);Mt.scene.add("WipePostFxScene",te);Mt.scene.add("BuiltInFxScene",ee);Mt.scene.start("DynamicColorPostFxScene"); +`;var At;class Dt extends Phaser.Renderer.WebGL.Pipelines.PostFXPipeline{constructor(ht){super({game:ht,fragShader:ie});Lt(this,At,void 0);Ft(this,At,0)}get progress(){return Rt(this,At)}set progress(ht){Ft(this,At,ht)}onPreRender(){this.set1f("uTest",Rt(this,At))}}At=new WeakMap;const Wt="BG";class se extends xt.Scene{constructor(){super({key:"DynamicColorPostFxScene"})}preload(){this.load.image(Wt,"assets/images/bg.png")}create(){var st;this.add.image(0,0,Wt).setOrigin(0),this.renderer.pipelines.addPostPipeline("DynamicColorPostFxPipeline",Dt),this.cameras.main.setPostPipeline(Dt),this.tweens.add({targets:this.cameras.main.getPostPipeline(Dt),progress:1,duration:2e3,delay:1e3,repeat:-1,yoyo:!0}),(st=this.input.keyboard)==null||st.once("keydown-SPACE",()=>{this.scene.start("WipePostFxScene")})}}const ne={type:xt.WEBGL,pixelArt:!0,scale:{parent:"game-container",width:1024,height:576,mode:xt.Scale.FIT,autoCenter:xt.Scale.CENTER_BOTH},backgroundColor:"#5c5b5b"},Mt=new xt.Game(ne);Mt.scene.add("NothingPostFxScene",Qt);Mt.scene.add("ColorPostFxScene",jt);Mt.scene.add("GreyScalePostFxScene",qt);Mt.scene.add("DynamicColorPostFxScene",se);Mt.scene.add("WipePostFxScene",te);Mt.scene.add("BuiltInFxScene",ee);Mt.scene.start("NothingPostFxScene"); diff --git a/examples/shader-examples/index.html b/examples/shader-examples/index.html index 9de54b2..ffccc63 100644 --- a/examples/shader-examples/index.html +++ b/examples/shader-examples/index.html @@ -14,7 +14,7 @@ background: #d7d7d7; } - +