home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 August / chip_08_2000.iso / aktualnosci / shareware / Rhinoceros / rh11eval_20000320.exe / %MAINDIR% / RIB / screen_aa.slc < prev    next >
Encoding:
Text File  |  2000-06-08  |  2.5 KB  |  212 lines

  1. version BMRT 2.4.0b
  2. surface screen_aa
  3. param    float    Ka        1
  4. param    float    Kd        0.75
  5. param    float    Ks        0.4
  6. param    float    roughness        0.1
  7. param    color    specularcolor        1 1 1
  8. param    float    density        0.25
  9. param    float    frequency        20
  10. local    normal    Nf    0 0 0
  11. local    vector    IN    0 0 0
  12. local    float    d    0
  13. local    float    ss    0
  14. local    float    tt    0
  15. local    float    swidth    0
  16. local    float    twidth    0
  17. local    float    GWF    0
  18. local    float    w    0
  19. local    float    h    0
  20. initcode 6
  21.     return
  22. code
  23.     pushv    I 
  24.     normalize
  25.     popv    IN 
  26.     pushv    I 
  27.     pushv    N 
  28.     normalize
  29.     faceforward
  30.     popv    Nf 
  31.     pushf    frequency 
  32.     pushif    1e-007 
  33.     pushf    dv 
  34.     pushf    dsdv 
  35.     mulff
  36.     abs
  37.     pushf    du 
  38.     pushf    dsdu 
  39.     mulff
  40.     abs
  41.     addff
  42.     fmax
  43.     mulff
  44.     popf    swidth 
  45.     pushf    frequency 
  46.     pushif    1e-007 
  47.     pushf    dv 
  48.     pushf    dtdv 
  49.     mulff
  50.     abs
  51.     pushf    du 
  52.     pushf    dtdu 
  53.     mulff
  54.     abs
  55.     addff
  56.     fmax
  57.     mulff
  58.     popf    twidth 
  59.     return_area
  60.     pushif    1 
  61.     mulFF    frequency s 
  62.     mod
  63.     popf    ss 
  64.     pushif    1 
  65.     mulFF    frequency t 
  66.     mod
  67.     popf    tt 
  68.     pushif    0.5 
  69.     mulF    density 
  70.     popf    GWF 
  71.     pushif    1 
  72.     pushf    swidth 
  73.     ge
  74.     ifz    0
  75.     pushf    GWF 
  76.     pushif    2 
  77.     mulff
  78.     pushif    1 
  79.     subff
  80.     popf    w 
  81.     jump    1
  82. label 0
  83.     divFF    GWF swidth 
  84.     pushif    2 
  85.     mulff
  86.     pushif    0 
  87.     pushif    1 
  88.     pushif    0 
  89.     pushf    swidth 
  90.     pushf    GWF 
  91.     pushif    1 
  92.     subff
  93.     subff
  94.     pushf    GWF 
  95.     pushif    1 
  96.     subff
  97.     subff
  98.     pushf    swidth 
  99.     pushf    GWF 
  100.     pushif    1 
  101.     subff
  102.     subff
  103.     subF    ss 
  104.     divff
  105.     fclamp
  106.     fclamp
  107.     pushif    1 
  108.     pushif    0 
  109.     divFF    GWF swidth 
  110.     pushif    1 
  111.     subff
  112.     fmax
  113.     pushif    1 
  114.     pushif    0 
  115.     subFF    GWF swidth 
  116.     subF    GWF 
  117.     subFF    GWF swidth 
  118.     subF    ss 
  119.     divff
  120.     fclamp
  121.     fclamp
  122.     subff
  123.     popf    w 
  124. label 1
  125.     pushif    1 
  126.     pushf    twidth 
  127.     ge
  128.     ifz    2
  129.     pushf    GWF 
  130.     pushif    2 
  131.     mulff
  132.     pushif    1 
  133.     subff
  134.     popf    h 
  135.     jump    3
  136. label 2
  137.     divFF    GWF twidth 
  138.     pushif    2 
  139.     mulff
  140.     pushif    0 
  141.     pushif    1 
  142.     pushif    0 
  143.     pushf    twidth 
  144.     pushf    GWF 
  145.     pushif    1 
  146.     subff
  147.     subff
  148.     pushf    GWF 
  149.     pushif    1 
  150.     subff
  151.     subff
  152.     pushf    twidth 
  153.     pushf    GWF 
  154.     pushif    1 
  155.     subff
  156.     subff
  157.     subF    tt 
  158.     divff
  159.     fclamp
  160.     fclamp
  161.     pushif    1 
  162.     pushif    0 
  163.     divFF    GWF twidth 
  164.     pushif    1 
  165.     subff
  166.     fmax
  167.     pushif    1 
  168.     pushif    0 
  169.     subFF    GWF twidth 
  170.     subF    GWF 
  171.     subFF    GWF twidth 
  172.     subF    tt 
  173.     divff
  174.     fclamp
  175.     fclamp
  176.     subff
  177.     popf    h 
  178. label 3
  179.     mulFF    w h 
  180.     pushif    1 
  181.     subff
  182.     popf    d 
  183.     pushf    d 
  184.     cset    Oi 
  185.     pushif    0 
  186.     pushf    d 
  187.     gt
  188.     ifz    4
  189.     pushf    roughness 
  190.     pushv    IN 
  191.     negv
  192.     pushv    Nf 
  193.     specular
  194.     mulCF    specularcolor Ks 
  195.     mulcc
  196.     pushv    Nf 
  197.     diffuse
  198.     mulFc    Kd 
  199.     ambient
  200.     mulFc    Ka 
  201.     addcc
  202.     mulC    Cs 
  203.     addcc
  204.     mulC    Oi 
  205.     popc    Ci 
  206.     jump    5
  207. label 4
  208.     pushif    0 
  209.     cset    Ci 
  210. label 5
  211.     return
  212.