Skip to content

[p5.js 2.0+ Bug Report]: Build updates broke filter shaders in minified builds #9111

Description

@davepagurek

Most appropriate sub-area of p5.js?

  • Accessibility
  • Color
  • Core/Environment/Rendering
  • Data
  • DOM
  • Events
  • Image
  • IO
  • Math
  • Typography
  • Utilities
  • WebGL
  • WebGPU
  • p5.strands
  • Build process
  • Unit testing
  • Internationalization
  • Friendly errors
  • Other (specify if possible)

p5.js version

Branch deploys of main

Web browser and version

Firefox

Operating system

MacOS

Steps to reproduce this

Steps:

  1. Use a branch deploy, e.g. https://raw.esm.sh/pr/p5@8d8c0b6/lib/p5.min.js
  2. Use filter(BLUR)
  3. Hit a TypeError: t.every is not a function

If I catch the transpiled internal shader in the debugger, it has:

let n = t.uniformFloat('n', `radius`)

...which incorrectly is passing in the variable name as the first parameter to the uniform even though it already is passing a string name for the uniform. Possibly the new build system is using backtick strings and the compiler doesn't handle that?

Metadata

Metadata

Assignees

Type

No type

Projects

Status
Completed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions