From 3386f7f249c73fc73aed1e6b18d99c82c6460197 Mon Sep 17 00:00:00 2001 From: John Breaux Date: Sun, 10 Jul 2022 22:27:28 -0500 Subject: [PATCH] Update readme w/ Program 4 --- README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c2c4f69..e1b0f43 100644 --- a/README.md +++ b/README.md @@ -50,4 +50,15 @@ The pendulum bob is free to rotate through 360 degrees about an anchor point at Use global variables for the point size of the anchor, the radius of the bob, the length of the wire, and the angular velocity of rotation in degrees per second. Set the initial angular velocity to 45 (degrees per second) and allow an interactive user to increase or decrease the value in multiples of 10 degrees per second with button presses. -Submit your HTML and JS files on Canvas \ No newline at end of file +Submit your HTML and JS files on Canvas + + +# Program 4 + +Orthographic rotating cube + +### Problem Statement + +Write a WebGL program that displays a cube with colored faces using an orthographic projection. Allow an interactive user to rotate the cube 15 degrees about the x and y axis. + +The viewing volume defined by setOrtho should be chosen so that the cube occupies most of the volume but no clipping occurs.