Make the following simple changes to Program 16.5: (i) Move the box so that it is behind
Question:
Make the following simple changes to Program 16.5:
(i) Move the box so that it is behind the sphere, but still visible,
(ii) Change the background color from black to light blue,
(iii) Modify the properties and position of the light source.
Program 16.5
Transcribed Image Text:
Compute Shader vec3 box_mins = vec3(-0.5, -0.5, -1.0); vec3 box_maxs = vec3( 0.5, 0.5, 1.0); vec3 box_pos = vec3(-1, -0.5, 1.0); const float DEG_TO_RAD = 3.1415926535/ 180.0; float box_xrot = 10.0; float box_yrot = 70.0; float box_zrot = 55.0;
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 100% (2 reviews)
Answered By
Carly Cimino
As a tutor, my focus is to help communicate and break down difficult concepts in a way that allows students greater accessibility and comprehension to their course material. I love helping others develop a sense of personal confidence and curiosity, and I'm looking forward to the chance to interact and work with you professionally and better your academic grades.
4.30+
12+ Reviews
21+ Question Solved
Related Book For
Computer Graphics Programming In OpenGL With JAVA
ISBN: 9781683922193
2nd Edition
Authors: V. Scott Gordon PhD, John L. Clevenger PhD
Question Posted:
Students also viewed these Computer science questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Make the following changes to Program 16.10: (i) Move the box so that it is in front of the sphere, (ii) Make the box transparent/refractive, and the sphere reflective, (iii) Move the checkerboard...
-
Create the game: Mancala Setup Players sit on either side of the board. Each player has six bowlsand one mancala. Before play begins, four stones are placed intoeach bowl, while both mancalas are...
-
Briefly explain the differences between copyrights and patents.
-
Let H{?} denote the (ideal) operation of Hilbert transformation; that is, Prove the following properties of the ideal Hilbert transform operator. Hx[n}} = x[k]h[n - k], [[u]x}H k=-o0 where h[n] is 2...
-
LifeTyme Publishers Inc. collects 30% of its sales on account in the month of the sale and 70% in the month following the sale. If sales on account are budgeted to be $ 320,000 for June and $ 350,000...
-
Prove that the order of convergence of the Crank-Nicolson finite difference method is \[O\left(\Delta x^{2}+\left(\frac{\Delta t}{2} ight)^{2} ight)\]
-
Flint Fabricators Inc. machines metal parts for the automotive industry. Under the traditional manufacturing approach, the parts are machined through two processes: milling and finishing. Parts are...
-
For 11, how do we know the vector should be pointing this way? For 12, I do not understand the explanation provided. What is meant by force in new direction? How do we know the trajectory is not...
-
In Program 16.12, replace the blue roombox with the lake scene skybox. Dont forget to disable lighting on the skybox. Program 16.12 Compute Shader struct Stack Element { int type; int depth; // type...
-
In Program 16.4, shadows can be very easily disabled by commenting out one particular line of code. Identify that line of code. Program 16.4 Compute Shader vec3 ads_phong_lighting (Ray r, Collision...
-
Beyonce Corporation factors $175,000 of accounts receivable with Kathleen Battle Financing, Inc. on a with recourse basis. Kathleen Battle Financing will collect the receivables. The receivables...
-
Prepare a statement to the owner and purchaser regarding the following items in the trust ledger. Property is at 15 McWilliam Street, Penrith. Vendor H. Harvey, Purchaser A Austin Harvey to Austin...
-
Last year, on April 24 you borrowed 17.3 million euro from a bank in Amsterdam at 6.5 percent and wired it to your affiliate in Mexico, who in turn converted the entire amount into peso immediately....
-
4. The following information refers to the FTSE 100 index and its derivatives on Thursday 9th December 2021. Spot (a) FTSE 100 Spot Futures FTSE 100 Mar 2022 Futures REQUIRED: Options FTSE 100 Mar...
-
What are orchestration systems that mostly use scripts, coding, and libraries called? O Infrastructure automation O Procedures O Infrastructure as code O Automated configuration
-
Often it is necessary to validate data input by the user and repeat the request for the data in the case where the input of the user is not valid. This can be done by using a do loop, while loop, or...
-
At December 31, 2008, Sycamore International Foods reported the following information on its balance sheet: Accounts receivable ..................$1,020,000 Less: Allowance for doubtful accounts...
-
Write an SQL statement to display all data on products having a QuantityOnHand greater than 0.
-
In the current year, Wilson Enterprises, a calendar year taxpayer, suffers a casualty loss of $90,000. How much of the casualty loss will be deductible by Wilson under the following circumstances? a....
-
Benton Company (BC) has one owner, who is in the 33% Federal income tax bracket. BCs gross income is $395,000, and its ordinary trade or business deductions are $245,000. Compute the Federal income...
-
In the current year, Tanager Corporation (a C corporation) had operating income of $480,000 and operating expenses of $390,000. In addition, Tanager had a long-term capital gain of $55,000 and a...
-
Read "Case 10: Trouble at City Zoo" from the Organizational Behaviour: Concepts, Controversies and Applications e-book. Report on the case study based on the instruction outlined in Case Analysis...
-
Based upon knowledge of your company or some other entity (government, military, non-profit, etc.)how does the process you have utilized in this case (MAS Case---Western Optimization and Eastern...
-
In the process of selecting previous coursework for revision (in support of this week's Assignment), please expound on at least three lessons learned from the process. For example, describe...
Study smarter with the SolutionInn App