Skip to content

The render script is not drawing the tile and particle predicates with the correct projection #221

@britzl

Description

@britzl

The render script is not resetting the projection matrix after drawing Rive content:

    -- Rive rendering
    render.set_projection(rive.get_projection_matrix())
    render.draw(predicates.rive)

    -- THE NEXT LINE IS MISSING: reset the projection matrix for the regular Defold rendering. as seen at the start of the render script update() function
    render.set_projection(camera_world.proj)

    render.draw(predicates.tile, camera_world.frustum)
    render.draw(predicates.particle, camera_world.frustum)

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