Skip to content

Test inverting the ray marching and scene loops #9

@virtualzavie

Description

@virtualzavie

Our algorithm essentially does:

for each step
    for each object of the scene
        d = min(d, distance(object))

A possible optimisation is to instead swap the loops, allowing to evaluate first the objects more likely to be close, and stop evaluating expensive background objects as soon as possible.

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