Advertisement
Guest User

b2ogre 0.5.5 supershader tundra2 bug - material

a guest
Oct 17th, 2011
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 3.06 KB | None | 0 0
  1. //user material: rex/DiffNormal
  2. vertex_program rex/DiffNormalVP cg
  3. {
  4.     source SuperShader.cg
  5.     entry_point mainVS
  6.     profiles vs_3_0 arbvp1
  7.     compile_arguments -DDIFFUSE_MAPPING -DNORMAL_MAPPING
  8.     default_params
  9.     {
  10.         param_named_auto worldViewProjMatrix worldviewproj_matrix
  11.         param_named_auto worldMatrix world_matrix
  12.         param_named_auto inverseWorldMatrix inverse_world_matrix
  13.         param_named_auto sunLightDir light_position 0
  14.         param_named_auto lightPos0 light_position 1
  15.         param_named_auto lightPos1 light_position 2
  16.         param_named_auto lightAtt0 light_attenuation 1
  17.         param_named_auto lightAtt1 light_attenuation 2
  18.         param_named_auto fogParams fog_params
  19.         param_named_auto fogColor fog_colour
  20.     }
  21. }
  22. fragment_program rex/DiffNormalFP cg
  23. {
  24.     source SuperShader.cg
  25.     entry_point mainPS
  26.     profiles ps_3_0 arbfp1
  27.     compile_arguments -DDIFFUSE_MAPPING -DNORMAL_MAPPING
  28.     default_params
  29.     {
  30.         param_named_auto sunLightCol light_diffuse_colour 0
  31.         param_named_auto lightCol0 light_diffuse_colour 1
  32.         param_named_auto lightCol1 light_diffuse_colour 2
  33.         param_named_auto ambientLight ambient_light_colour
  34.     }
  35. }
  36. // abstract passes //
  37. abstract pass rex/DiffNormal/PASS0
  38.         {
  39.             iteration once
  40.             vertex_program_ref rex/DiffNormalVP
  41.             {
  42.             }
  43.             fragment_program_ref rex/DiffNormalFP
  44.             {
  45.             }
  46.             texture_unit baseMap
  47.             {
  48.                 texture TextureMissing.png
  49.             }
  50.             texture_unit normalMap
  51.             {
  52.                 texture TextureMissing.png
  53.             }
  54.         }
  55.     }
  56. }
  57. // blender material: MatCraneo
  58. material MatCraneo
  59. {
  60.     receive_shadows on
  61.     technique b2ogre_1318900242.984463
  62.     {
  63.         pass b2ogre_1318900242.991866
  64.         {
  65.             alpha_to_coverage off
  66.             colour_write on
  67.             cull_hardware clockwise
  68.             depth_check on
  69.             depth_func less_equal
  70.             depth_write on
  71.             illumination_stage
  72.             light_clip_planes off
  73.             light_scissor off
  74.             lighting on
  75.             normalise_normals off
  76.             polygon_mode solid
  77.             scene_blend one zero
  78.             scene_blend_op add
  79.             shading gouraud
  80.             transparent_sorting on
  81.             texture_unit b2ogre_1318900242.992195
  82.             {
  83.                 texture nrmls_craneo.png
  84.                 tex_address_mode border
  85.                 tex_border_colour 1.0 0.0 1.0
  86.                 scale 1.0 1.0
  87.                 colour_op replace
  88.             }
  89.             texture_unit b2ogre_1318900242.992396
  90.             {
  91.                 texture ambocc_craneo.png
  92.                 tex_address_mode border
  93.                 tex_border_colour 1.0 0.0 1.0
  94.                 scale 1.0 1.0
  95.                 colour_op_ex blend_diffuse_colour src_texture src_current
  96.             }
  97.         }
  98.  
  99.         pass b2ogre_1318900242.992762 : rex/DiffNormal/PASS0
  100.         {
  101.             alpha_to_coverage off
  102.             colour_write on
  103.             cull_hardware clockwise
  104.             depth_check on
  105.             depth_func less_equal
  106.             depth_write on
  107.             illumination_stage
  108.             light_clip_planes off
  109.             light_scissor off
  110.             lighting on
  111.             normalise_normals off
  112.             polygon_mode solid
  113.             scene_blend one zero
  114.             scene_blend_op add
  115.             shading gouraud
  116.             transparent_sorting on
  117.             texture_unit normalMap
  118.             {
  119.                 texture nrmls_craneo.png
  120.                 tex_address_mode border
  121.                 tex_coord_set 0
  122.             }
  123.             texture_unit baseMap
  124.             {
  125.                 texture ambocc_craneo.png
  126.                 tex_address_mode border
  127.                 tex_coord_set 0
  128.             }
  129.         }
  130.     }
  131. }
  132.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement