|
Post by sbphillips on Jul 19, 2020 0:30:52 GMT
Ch 11 test - shade_hit() with a reflective, transparent material
Can't seem to get the color to work out. Can someone get me values from shade_hit for surface, reflected, refracted, and reflectance
surface = [0.6864, 0.6864, 0.6864] reflected = [0.1903, 0.2379, 0.1427] refracted = [0.6281, 0.0000, 0.0000] reflectance = 0.042069273124372364 shade_hit: [1.2961, 0.6964, 0.6924]
|
|
|
Post by newgraphics on Jul 19, 2020 20:55:29 GMT
In my testing I get 3 sets of values: surface=Color: 0.381 0.476 0.286 reflected=Color: 0.000 0.000 0.000 refracted=Color: 0.000 0.000 0.000 surface=Color: 0.500 0.000 0.000 reflected=Color: 0.000 0.000 0.000 refracted=Color: 0.000 0.000 0.000 surface=Color: 0.686 0.686 0.686 reflected=Color: 0.190 0.238 0.143 refracted=Color: 0.250 0.000 0.000 reflectance=0.042069273124372364
final color: 0.934 0.696 0.692
|
|