Advertisement
cloudstofu

Untitled

Oct 23rd, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. Pattern "PxrSeExpr" "PxrSeExpr1"
  2. "float floatInput1" [0.5] # outer rad
  3. "float floatInput2" [0.25] # inner rad
  4. "string expression"
  5. ["d = dist(s-0.5,t-0.5,0, 0, 0, 0);\
  6. outer = (d < floatInput1) ? 1 : 0;\
  7. d = dist(s-0.5,t-0.5,0, 0, 0, 0);\
  8. inner = (d < floatInput2) ? 0 : 1;\
  9. resultF = outer * inner;\
  10. resultF\
  11. "]
  12. #d = dist(s, t, 0 x, y, z)
  13.  
  14.  
  15. Bxdf "PxrSurface" "PxrSurface1"
  16. #"float inputMaterial" []
  17. "float diffuseGain" [0]
  18. "color diffuseColor" [1 1 1]
  19. "int diffuseDoubleSided" [1]
  20. "int specularFresnelMode" [1]
  21. "color specularEdgeColor" [0.9 0.9 0.9]
  22. "color specularIor" [0.155 0.117 0.138]
  23. "color specularExtinctionCoeff" [4 4 4]
  24. "float specularRoughness" [0.4]
  25. "float glassIor" [1.1]
  26. "int specularDoubleSided" [0]
  27. "reference float presence" ["PxrSeExpr1:resultF"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement