home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 July & August / PCWorld_2007-07-08_cd.bin / temacd / chess3d / Chess3D_110.exe / media / data.c3d / mats.material < prev    next >
Text File  |  2006-11-07  |  6KB  |  356 lines

  1. vertex_program CelShadingVP cg
  2. {
  3.     source CelShading.cg
  4.     entry_point main_vp
  5.     profiles vs_1_1 arbvp1
  6.  
  7.     default_params
  8.     {
  9.         param_named_auto lightPosition light_position_object_space 0
  10.         param_named_auto eyePosition camera_position_object_space
  11.         param_named_auto worldViewProj worldviewproj_matrix
  12.         param_named shininess float 1 
  13.     }
  14. }
  15.  
  16. fragment_program CelShadingFP cg
  17. {
  18.     source CelShading.cg
  19.     entry_point main_fp
  20.     profiles ps_1_1 arbfp1 fp20
  21. }
  22.  
  23.  
  24. material Desk/White
  25. {
  26.     technique
  27.     {
  28.         pass
  29.         {
  30.                     ambient 0.6 0.6 0.6
  31.                     diffuse 0.9 0.9 0.9
  32.                     specular 0.8 0.8 0.8 20.0
  33.         }
  34.     }
  35. }
  36. material Desk/Black
  37. {
  38.     technique
  39.     {
  40.         pass
  41.         {
  42.                     ambient 0.1 0.1 0.1
  43.                     diffuse 0.1 0.1 0.1
  44.                     specular 0.3 0.3 0.3 20.0
  45.         }
  46.     }
  47. }
  48. material Desk/Green
  49. {
  50.     technique
  51.     {
  52.         pass
  53.         {
  54.                     ambient 0.0 0.9 0.0
  55.                     diffuse 0.1 0.8 0.1
  56.                     specular 0.3 0.3 0.3 20.0
  57.         }
  58.     }
  59. }
  60. material Arrow
  61. {
  62.     technique
  63.     {
  64.         pass
  65.         {
  66.                     ambient 0.8 0.0 0.0
  67.                     diffuse 0.7 0.0 0.0
  68.                     specular 0.6 0.2 0.2 20.0
  69.         }
  70.     }
  71. }
  72. material Fig/WhiteCartoon
  73. {
  74.     technique
  75.     {
  76.         pass
  77.         {
  78.  
  79.             vertex_program_ref CelShadingVP
  80.             {
  81.                 param_named shininess float4 10.0 0.0 0.0 0
  82.             }
  83.             fragment_program_ref CelShadingFP
  84.             {
  85.                 param_named diffuse float4 0.7 0.7 0.7 1
  86.                 param_named specular float4 0.3 0.3 0.3 1
  87.             }
  88.             texture_unit
  89.             {
  90.                 texture cel_shading_diffuse.png 1d
  91.                 tex_address_mode clamp
  92.                 filtering none
  93.             }
  94.             texture_unit
  95.             {
  96.                 texture cel_shading_specular.png 1d
  97.                 tex_address_mode clamp
  98.                 filtering none
  99.                 tex_coord_set 1
  100.             }
  101.             texture_unit
  102.             {
  103.                 texture cel_shading_edge.png 1d
  104.                 tex_address_mode clamp
  105.                 filtering none
  106.                 tex_coord_set 2
  107.             }
  108.         }
  109.     }
  110.     technique
  111.     {
  112.         pass
  113.         {
  114.                     ambient 0.8 0.8 0.8
  115.                     diffuse 0.8 0.8 0.8
  116.                     specular 0.3 0.3 0.3 20.0
  117.         }
  118.     }
  119.  
  120. }
  121. material Fig/BlackCartoon
  122. {
  123.     technique
  124.     {
  125.         pass
  126.         {
  127.             vertex_program_ref CelShadingVP
  128.             {
  129.                 param_named shininess float4 10.0 0.0 0.0 0
  130.             }
  131.             fragment_program_ref CelShadingFP
  132.             {
  133.                 param_named diffuse float4 0.2 0.2 0.2 1
  134.                 param_named specular float4 0.3 0.3 0.3 1
  135.             }
  136.             texture_unit
  137.             {
  138.                 texture cel_shading_diffuse.png 1d
  139.                 tex_address_mode clamp
  140.                 filtering none
  141.             }
  142.             texture_unit
  143.             {
  144.                 texture cel_shading_specular.png 1d
  145.                 tex_address_mode clamp
  146.                 filtering none
  147.                 tex_coord_set 1
  148.             }
  149.             texture_unit
  150.             {
  151.                 texture cel_shading_edge.png 1d
  152.                 tex_address_mode clamp
  153.                 filtering none
  154.                 tex_coord_set 2
  155.             }
  156.  
  157.         }
  158.     }
  159.     technique
  160.     {
  161.         pass
  162.         {
  163.                    ambient 0.14 0.14 0.14
  164.                     diffuse 0.14 0.14 0.14
  165.                     specular 0.6 0.6 0.6 30.0
  166.         }
  167.     }
  168. }
  169. material Fig/MoveableCartoon
  170. {
  171.     technique
  172.     {
  173.         pass
  174.         {
  175.  
  176.             vertex_program_ref CelShadingVP
  177.             {
  178.                 param_named shininess float4 10.0 0.0 0.0 0
  179.             }
  180.             fragment_program_ref CelShadingFP
  181.             {
  182.                 param_named diffuse float4 0.1 0.9 0.1 1
  183.                 param_named specular float4 0.6 0.6 0.6 1
  184.             }
  185.             texture_unit
  186.             {
  187.                 texture cel_shading_diffuse.png 1d
  188.                 tex_address_mode clamp
  189.                 filtering none
  190.             }
  191.             texture_unit
  192.             {
  193.                 texture cel_shading_specular.png 1d
  194.                 tex_address_mode clamp
  195.                 filtering none
  196.                 tex_coord_set 1
  197.             }
  198.             texture_unit
  199.             {
  200.                 texture cel_shading_edge.png 1d
  201.                 tex_address_mode clamp
  202.                 filtering none
  203.                 tex_coord_set 2
  204.             }
  205.         }
  206.     }
  207.     technique
  208.     {
  209.         pass
  210.         {
  211.                    ambient 0.1 0.8 0.1
  212.                     diffuse 0.1 0.9 0.1
  213.                     specular 0.6 0.6 0.6 30.0
  214.         }
  215.     }
  216. }
  217. material Fig/White
  218. {
  219.     technique
  220.     {
  221.         pass
  222.         {
  223.                     ambient 0.8 0.8 0.8
  224.                     diffuse 0.8 0.8 0.8
  225.                     specular 0.3 0.3 0.3 20.0
  226.         }
  227.     }
  228.  
  229. }
  230. material Fig/Black
  231. {
  232.     technique
  233.     {
  234.         pass
  235.         {
  236.                    ambient 0.14 0.14 0.14
  237.                     diffuse 0.14 0.14 0.14
  238.                     specular 0.6 0.6 0.6 30.0
  239.         }
  240.     }
  241. }
  242. material Fig/Moveable
  243. {
  244.     technique
  245.     {
  246.         pass
  247.         {
  248.                    ambient 0.1 0.8 0.1
  249.                     diffuse 0.1 0.9 0.1
  250.                     specular 0.6 0.6 0.6 30.0
  251.         }
  252.     }
  253. }
  254. material Desk/0
  255. {
  256.     technique
  257.     {
  258.         pass
  259.         {
  260.                     ambient 0.9 0.9 0.9
  261.                     diffuse 0.9 0.9 0.9
  262.         }
  263.     }
  264. }
  265. material Desk/1
  266. {
  267.     technique
  268.     {
  269.         pass
  270.         {
  271.                     ambient 0.9 0.9 0.0
  272.                     diffuse 0.9 0.9 0.0
  273.         }
  274.     }
  275. }
  276. material Desk/2
  277. {
  278.     technique
  279.     {
  280.         pass
  281.         {
  282.                     ambient 1.0 0.6 0.0
  283.                     diffuse 1.0 0.6 0.0
  284.         }
  285.     }
  286. }
  287. material Desk/3
  288. {
  289.     technique
  290.     {
  291.         pass
  292.         {
  293.                     ambient 1.0 0.2 0.0
  294.                     diffuse 1.0 0.2 0.0
  295.         }
  296.     }
  297. }
  298. material Desk/4
  299. {
  300.     technique
  301.     {
  302.         pass
  303.         {
  304.                     ambient 0.7 0.0 0.0
  305.                     diffuse 0.7 0.0 0.0
  306.         }
  307.     }
  308. }
  309. material Desk/5
  310. {
  311.     technique
  312.     {
  313.         pass
  314.         {
  315.                     ambient 0.1 0.1 0.1
  316.                     diffuse 0.1 0.1 0.1
  317.         }
  318.     }
  319. }
  320.  
  321. material Fig/Confirm
  322. {
  323.     technique
  324.     {
  325.         pass
  326.         {
  327.                    emissive 0.0 1.0 0.0
  328.         }
  329.     }
  330. }
  331. //1.10
  332. material Desk/WhiteHighlighted
  333. {
  334.     technique
  335.     {
  336.         pass
  337.         {
  338.                     ambient 0.9 0.4 0.4
  339.                     diffuse 0.9 0.4 0.4
  340.                     specular 0.0 0.0 0.0 20.0
  341.         }
  342.     }
  343. }
  344. material Desk/BlackHighlighted
  345. {
  346.     technique
  347.     {
  348.         pass
  349.         {
  350.                     ambient 0.5 0.0 0.0
  351.                     diffuse 0.2 0.1 0.1
  352.                     specular 0.0 0.0 0.0 20.0
  353.         }
  354.     }
  355. }
  356.