Skip to content

Commit

Permalink
Merge branch 'main' of github.com:galacean/engine-toolkit into dev/1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
JujieX committed Jul 26, 2024
2 parents 5e1c58b + 51a424c commit 41dcab1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/framebuffer-picker/src/FramebufferPicker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
Script,
Shader,
ShaderProperty,
SubShader,
Texture2D,
TextureFormat,
Vector2,
Expand All @@ -19,6 +20,11 @@ import fs from "./color.fs.glsl";
import vs from "./color.vs.glsl";

const pickShader = Shader.create("framebuffer-picker-color", vs, fs);
pickShader.subShaders.forEach((subShader: SubShader) => {
subShader.passes.forEach((pass) => {
pass.setTag("spriteDisableBatching", true);
});
});

/**
* GPU Frame buffer picker.
Expand Down

0 comments on commit 41dcab1

Please sign in to comment.