Skip to content

Sphere color with constant_medium #820

@Veigabriel25

Description

@Veigabriel25

When i tried this code of the book 2 in the book 3, no matter what color I apply it stays black.

shared_ptr<hittable> boundary = make_shared<sphere>(point3(200,150,200), 70, make_shared<dielectric>(1.5)); objects.add(boundary); objects.add(make_shared<constant_medium>(boundary, 0.2, color(1, 1, 1)));

What am i doing wrong??

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