Skip to content

Commit

Permalink
Tidy up variable name in hellotriangle
Browse files Browse the repository at this point in the history
  • Loading branch information
adamkewley committed Jun 13, 2024
1 parent 459b9bd commit 4251b82
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/hellotriangle/hellotriangle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ namespace
public:
HelloTriangleScreen()
{
const Vec3 viewer_pos = {3.0f, 0.0f, 0.0f};
camera_.set_position(viewer_pos);
const Vec3 viewer_position = {3.0f, 0.0f, 0.0f};
camera_.set_position(viewer_position);
camera_.set_direction({-1.0f, 0.0f, 0.0f});
const Color color = Color::red();
material_.set_ambient_color(0.2f * color);
material_.set_diffuse_color(0.5f * color);
material_.set_specular_color(0.5f * color);
material_.set_viewer_position(viewer_pos);
material_.set_viewer_position(viewer_position);
}
private:
void impl_on_draw() override
Expand Down

0 comments on commit 4251b82

Please sign in to comment.