dilevin / computer-graphics-ray-tracing

Computer Graphics Assignment about Ray Tracing
1 stars 5 forks source link

Values for k_d, k_s and p #73

Closed gursi26 closed 1 month ago

gursi26 commented 1 month ago

How do we get the values for k_d, k_s and p for the blinn phong shading model? I cannot find them anywhere in the file.

FalakR commented 1 month ago

In Object.h you can find the material attribute which corresponds to the Material struct (can be found in Material.h) and there you'll find all 4 i.e., ks, kd, ks, and km

vpineda1996 commented 1 month ago

+1 to FalakR's comment