Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix output glsl error when function overload exists in shaderlab source code #2001

Merged
merged 14 commits into from
Feb 21, 2024

Conversation

Sway007
Copy link
Member

@Sway007 Sway007 commented Feb 20, 2024

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

  • In order to be compatible with glsl function overloaded features, change the global variable table to type Map<string, IGlobal[]>
  • Add ShaderFactory.unRegisterInclude
  • Include key in ShaderLab compatible with path like, e.g. "/Floader/shader.gs"

@Sway007 Sway007 added bug Something isn't working shader Shader related functions high priority High priority issue labels Feb 20, 2024
@Sway007 Sway007 added this to the 1.2 milestone Feb 20, 2024
@Sway007 Sway007 self-assigned this Feb 20, 2024
@GuoLei1990 GuoLei1990 merged commit b7bbd42 into galacean:dev/1.2 Feb 21, 2024
6 checks passed
GuoLei1990 added a commit to GuoLei1990/galacean-engine that referenced this pull request Feb 26, 2024
* dev/1.2: (29 commits)
  Add `Preprocessor` in `ShaderLab` (galacean#2009)
  "v1.2.0-alpha.11"
  Add ShaderLab package umd entry (galacean#2006)
  Fix primitive e2e error (galacean#2007)
  "v1.2.0-alpha.10"
  "v1.1.0-beta.49"
  "v1.1.0-beta.48"
  Physics raycast hitResult add shape (galacean#2004)
  Fix output glsl error when `function overload` exists in shaderlab source code (galacean#2001)
  refactor: adapter shadowFadeBorder exported from editor (galacean#1999)
  refactor(render-sort-compare): opt compare code (galacean#2002)
  feat: modify the method of generating the path (galacean#2000)
  "v1.1.0-beta.47"
  Fix`gl.MIN` and `gl.MAX` doesn't exist in `webgl1` (galacean#1990)
  Fix glb/gltf use extension parse (galacean#1992)
  "v1.1.0-beta.46"
  Fix query path error (galacean#1986)
  "v1.1.0-beta.45"
  "v1.1.0-beta.44"
  Fix the problem of resetting `HtmlCanvas.ClientXXX` when call `canvas.resizeByClientSize()` (galacean#1984)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working high priority High priority issue shader Shader related functions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants