Skip to content

Trying to use doubles in the GLSL code does not work? #168

@TedKaczynskisCousin

Description

@TedKaczynskisCousin

When I try to use #define FNLfloat double, I get the following error

ERROR: 0:602: '=' :  cannot convert from ' temp double' to ' temp highp float'
ERROR: 0:602: '' : compilation terminated 

Which seems to correspond to float xi = x - float(i); and float yi = y - float(j); in the _fnlSingleSimplex2D function... Is this just me? Any help would be appreciated.
Note that changing those lines to xi = float(x) - float(i); and float yi = float(y) - float(j); fixes the error, but another one appears later down.

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