Skip to content

[p5.js 2.0 Bug Report]: parameters for model should be updated to include count #7831

Closed
@lukeplowden

Description

@lukeplowden

Most appropriate sub-area of p5.js?

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

p5.js version

v2.0.2

Web browser and version

n/a

Operating system

n/a

Steps to reproduce this

Steps:

  1. Call model(myModel, 1) where the second parameter is correctly an instance count

Currently, the parameterData.json and the YUIDocs for model() in loading.js do not reflect the ability to add an instance count for custom instancing shaders. I noticed this whilst working on the p5.strands tutorial. I have fixed this on my local branch, by updating the two files above. This gives us a false negative when using the instance count.

Metadata

Metadata

Labels

Type

Projects

Status

Completed

Relationships

None yet

Development

No branches or pull requests

Issue actions