Skip to content

Commit

Permalink
fixed shader example during build process
Browse files Browse the repository at this point in the history
Signed-off-by: Scott Westover <[email protected]>
  • Loading branch information
scottwestover committed Mar 29, 2024
1 parent df87448 commit 0149fb7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/3.80/shaders/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ game.scene.add('GreyScalePostFxScene', GreyScalePostFxScene);
game.scene.add('DynamicColorPostFxScene', DynamicColorPostFxScene);
game.scene.add('WipePostFxScene', WipePostFxScene);
game.scene.add('BuiltInFxScene', BuiltInFxScene);
game.scene.start('NothingPostFxScene');
game.scene.start('DynamicColorPostFxScene');
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class DynamicColorPostFxScene extends Phaser.Scene {
this.cameras.main.setPostPipeline(DynamicColorPostFxPipeline);

this.tweens.add({
targets: this.cameras.main.getPostPipeline('DynamicColorPostFxPipeline'),
targets: this.cameras.main.getPostPipeline(DynamicColorPostFxPipeline),
progress: 1,
duration: 2000,
delay: 1000,
Expand Down
2 changes: 1 addition & 1 deletion examples/3.80/shaders/src/scenes/wipe-post-fx-scene.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class WipePostFxScene extends Phaser.Scene {

// example with updating variable
this.tweens.add({
targets: this.cameras.main.getPostPipeline('WipePostFxPipeline'),
targets: this.cameras.main.getPostPipeline(WipePostFxPipeline),
progress: 1,
duration: 2000,
delay: 1000,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const frag = `
#define SHADER_NAME NOTHING_POST_TINT
#define SHADER_NAME DYNAMIC_POST_TINT
#ifdef GL_ES
precision mediump float;
Expand Down

0 comments on commit 0149fb7

Please sign in to comment.