Skip to content
This repository was archived by the owner on Nov 22, 2022. It is now read-only.
This repository was archived by the owner on Nov 22, 2022. It is now read-only.

Adjusting Polygon offset factor #63

Open
@ManishJu

Description

@ManishJu

Is there a way to adjust the polygon offset factor of the material in this ray-tracer as geometries that are really close to each other are z-fighting. The three.js real-time version works fine , the ray tracer doesn't seem to pick up the value put in the material properties.

Edit: I have tried to reduce the range of the camera near and far plane but with no success in the ray-tracer.
I also changed the precision of the depth buffer to 16 bits by setting depth to true [ in cavas context] in your RayTracingRenderer.js file but with no success.

Thanks !

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions