-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Open
Description
Increasing access
This makes it easier for contributors and maintainers to work on WebGL code by providing clear visual feedback when changes affect 3D primitives, reducing the need for deep knowledge of WebGL internals.
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)
Feature request details
The WebGL visual test suite currently has tests for some basic 3D primitives, but a few commonly used ones are not covered yet:
cylinder()cone()ellipsoid()torus()
Proposed improvement
Add one simple visual regression test for each of these primitives. Each test would:
- Render a single shape
- Use stable lighting
- Avoid animation
- Generate a baseline screenshot for comparison
Scope
This would be an additive change only:
- No API changes
- No refactors
- Tests will be live in
test/unit/visual/cases/webgl.js