[SOLVED] Computer_Graphics Assignment 16–BRDF Models

30.00 $

Category: Tags: , , , , ,
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon A16-mesfsl.zip (6445.9 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
🔒 Securely Powered by:
Secure Checkout
Rate this product

Assignment 16: BRDF Models

 

In this assignment you have to complete the Fragment Shader contained in file

shaders/BRDFShader.frag , to implement the diffuse and specular component of several standard BRDFs. The file must be compiled into shaders/BRDFFrag.spv as seen in Assignment 10. For each light model, function ending with …_BRDF() should return a vec3 vector containing the RGB color computed by the model. Each function receives the following parameters:

 

  • vec3 L : the direction of the light (unitary vector)
  • vec3 N : the direction of the normal vector (unitary vector)
  • vec3 V : the direction of the view vector (unitary vector)
  • vec3 C : the main color required by the model

 

If needed, BRDF receive in input also other parameters relevant to the particular model. Refer to the comment in the code for them. The following GLSL standard procedures can be helpful in solving this exercise: dot()  pow()  reflect()  max()  min()  acos()  sin()  tan()

 

The expect results should be similar to the following:

 

 

Users can move the view using the same keys as in Assingnment 0, and remove the texture pressing the T key.

 

ESC – quit the application   SPACE BAR – move to the next light  |  T: toggle the texture
Q: roll left W: forward E: roll right R: up   ↑: look up  
A: left S: backward D: right F: down ←: look left ↓: look down →: look right

 

  • A16-mesfsl.zip