Skip to content

Marching.js combinators don't work in the latest version #102

@oersted

Description

@oersted

Run the following for example:

Union2(
  Sphere(.5).translate(-1.5,0,0),
  Sphere(.5).translate( 1.5,0,0)
).render()

The console shows errors indicating that the shader failed to compile: INVALID_OPERATION: program not linked

After that nothing renders and the whole visual environment seizes to work.

The same thing happens trying to use all combinators as far as I can tell: Difference, Intersection... All the primitives like Sphere().render() do work fine though.

The same errors are observed when running it locally after cloning, in https://gibber.cc/playground/ and in https://gibber.cc/alpha/playground/.

These combinators do work fine over at https://charlieroberts.github.io/marching/playground/, so it's not an issue of marching.js with modern browsers, it's an issue with bundling it within Gibber.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions