Skip to content

Simple bug fix for HistogramTextureGenerator #196

@kamesa7

Description

@kamesa7

code at GenerateHistogramTextureOnGPU
computeHistogram.SetFloat("ValueRange", (float)(numValues - 1));
should be
computeHistogram.SetFloat("ValueRange", (float)(sampleCount - 1));
With this fix, the histogram can be displayed correctly even for data with a large data range.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions