Skip to content

Add a "fatal" function for multi-output Map shaders #307

Open

Description

@pramsey1234

In moonray: lib/rendering/rndr/RenderContext.{h,cc} Add a "fatal" function analogous to fatalSampleBool for multi-output shaders (fatalSampleMulti?) and call mSceneContext->setFatalSampleFuncMulti() to set it on the context.

A trivial implementation of this would be to get the size of the output buffer and zero it while a more advanced one would iterate through the outputs and set an appropriate error value for each type. This may be awfully expensive though. Is there someplace we could cache an error value?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions