Advertisement
Guest User

Spout_OSL_displacement

a guest
Feb 23rd, 2017
299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. shader
  2. spout(
  3. float s = 0
  4. [[
  5. int lockgeom = 0,
  6. string widget = "null",
  7. ]],
  8. float t = 0
  9. [[
  10. int lockgeom = 0,
  11. string widget = "null",
  12. ]],
  13. float curvy = 1,
  14. int invert = 1,
  15. output float resultF = 0)
  16. {
  17. //resultF = pow(t, curvy );
  18. resultF = (sin((1 - t) * 6.282) + 1)/2;
  19. if(invert == 1)
  20. resultF = 1 - resultF;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement