Welcome, Guest.
Username: Password: Remember me

TOPIC: Reflective Bump Mapping [Marty McFly]

Reflective Bump Mapping [Marty McFly] 3 years 3 months ago #21

And I was only to de-derail it back on the shader. :whistle:

Sharing is Learning.

(now it is derailed)
@crosire
Yes, ADD-MAD. But how about SFU or ALU? I've read that they support interpolation instructions along with math like sqrt(), rcpsqrt() and stuff.
The administrator has disabled public write access.

Reflective Bump Mapping [Marty McFly] 3 years 3 months ago #22

lerp in the shader?
color*(1-reflfactor)+reflection*reflfactor?
rofl factor??
a*(1-r) + b*r???

Guys, guys !!
Lets forget about this all, I got a splitting headache and even more after
reading about those rofl factors, a*(1-r) + b*r & lerps.

My sincere apologies for derailing the topic.
Lads: the beer is on me, well I hope you are still thirsty. Cheers!

The administrator has disabled public write access.
The following user(s) said Thank You: crosire

Reflective Bump Mapping [Marty McFly] 3 years 3 months ago #23

Well reflections are applied by

result = lerp(color, reflection, reflectionamount)

where lerp(A,B,1.0) outputs B, lerp(A,B,0.0) outputs A, lerp(A,B,0.5) outputs the exact middle between A and B and so on. If I apply a threshold on reflections (as Elimina requested) the result would be black reflections where the reflections are darker than the threshold. It would work if it was color + reflection but that isn't the equation. I probably have to introduce some reflectance term, let's see...
The administrator has disabled public write access.
  • Page:
  • 1
  • 2