- Home /
Question by
dandeentremont · Nov 24, 2013 at 07:46 PM ·
speedmathspecular
Is this spec method any faster than using pow()?
The line below uses a different approach to specular falloff. Essentially it would take the spec falloff gradient[c] and apply "black crushing" (a la photoshop levels) to simulate glossiness[g]. Then, it multiplies the end result to simulate spec power[s].
(1-((1-c)/(1-g)))*s
c=input color, g=glossiness, s=spec strength
The problem is, I don't know if this is any faster than pow()! Does anyone have some better insight into the math behind this?
Thanks!
-Dan
Comment
Your answer
Follow this Question
Related Questions
How can I adapt the AngleAxis speed to match my rigidbody speed? 0 Answers
< cheaper than <= ? 2 Answers
Rotate an object in a specific time 0 Answers