Skip to content

Macro saturate is defined/injected in each source file #187

@ChemistAion

Description

@ChemistAion

As the title states, it seems that resources\three.min.js injects/defines saturate macro for each source file.

With this below a 'saturate': macro redefined error is triggered:

#define saturate(x) clamp(x, 0., 1.)

With this a '0.0' : syntax error error is triggered:

float saturate(float x)
{
    return clamp(x, 0.0, 1.0);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions