Advertisement
BobTheHunted

polyplane rvmat thing

Feb 6th, 2018
369
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.56 KB | None | 0 0
  1. ambient[]={
  2. 0.3,    // crown bleed MUL factor
  3. 0.48,   // crown bleed ADD factor
  4. 0.35,   // per-pixel bleed level
  5. 0.35};  // per-pixel bleed level
  6.  
  7. diffuse[]={
  8. 0.5,    // Diffuse + ambient R
  9. 0.5,    // Diffuse + ambient G
  10. 0.5,    // Diffuse + ambient B
  11. 0.5};   // Transparency MUL factor (2x)
  12.  
  13. forcedDiffuse[]={
  14. 0.35,   // per-pixel translucency MUL
  15. 0.35,   // per-pixel translucency ADD
  16. 0.5,    // crown attenuation MUL
  17. 1.0};   // crown attenuation ADD
  18.  
  19. emmisive[]={
  20. 1.0,    // translucency modulation color (for sky) R
  21. 1.0,    // translucency modulation color (for sky) G
  22. 1.0,    // translucency modulation color (for sky) B
  23. 0.5};   // translucency color MUL factor for main light (x2)
  24.  
  25. specular[]={
  26. 0.00715,    // specular color for main light R
  27. 0.0082, // specular color for main light R
  28. 0.00512,    // specular color for main light R
  29. 5.51};  // specular color MUL factor for ambient
  30.  
  31. specularPower=10;   // SpecularPower
  32.  
  33. PixelShaderID="TreeAdv";
  34. //VertexShaderID="TreeAdv";
  35. VertexShaderID="TreeAdvModNormals";
  36.  
  37. class Stage1
  38.  
  39. {
  40.     texture="A3\Plants_F\_PolyPlane\data\polyplane_PinusSylvestris_L2_nohq.tga";
  41.     //texture="#(argb,8,8,3)color(0.5,0.5,1.0,1.0,NOHQ)";
  42.     uvSource="tex";
  43.     class uvTransform
  44.     {
  45.         aside[]={1.0,0.0,0.0};
  46.         up[]={0.0,1.0,0.0};
  47.         dir[]={0.0,0.0,0.0};
  48.         pos[]={0.0,0.0,0.0};
  49.     };
  50. };
  51. class Stage2
  52. {
  53.     //texture="#(argb,8,8,3)color(0.5,0.5,0.5,1.0,MCA)";
  54.     texture="A3\Plants_F\Tree\data\t_PinusS2s_a_F_LOD1_Crown_mca.tga";
  55.     uvSource="tex1";
  56.     class uvTransform
  57.     {
  58.         aside[]={1.0,0.0,0.0};
  59.         up[]={0.0,1.0,0.0};
  60.         dir[]={0.0,0.0,0.0};
  61.         pos[]={0.0,0.0,0.0};
  62.     };
  63. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement