Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.49 KB | None | 0 0
  1.  
  2. #ifndef USE_OPENGL // for mb.fx file
  3. #define USE_DIRECTX9
  4. #endif
  5.  
  6. #define USE_NEW_TREE_SYSTEM
  7.  
  8. #define FLORA_DETAIL_FADE_MUL   (3.0f / 4.0f)
  9.  
  10. #ifdef USE_DIRECTX9
  11. //#define USE_DEVICE_TEXTURE_ASSIGN
  12. #define USE_FX_STATE_MANAGER
  13. //#define USE_SHADER_CONSTANT_MANAGER
  14. #endif
  15.  
  16. //#define USE_LIGHTING_PASS
  17. #ifdef USE_LIGHTING_PASS
  18.     #define USE_SEQUENTIAL_LIGHTING_CALLS
  19.     #define MAX_LIGHTS_PER_PASS 4
  20. #endif
  21.  
  22. inline float get_wave_height(const float pos[2], const float coef, const float freq1, const float freq2, const float time)
  23. {
  24.     return coef * sin( (pos[0]+pos[1]) * freq1 + time) * cos( (pos[0]-pos[1]) * freq2 + (time+4));;
  25. }
  26.  
  27.  
  28. //#define USE_SHARED_DIFFUSE_MAP
  29. #define USE_REGISTERED_SAMPLERS
  30.  
  31.  
  32. #ifdef USE_REGISTERED_SAMPLERS
  33.  
  34. //STR: order is important for performance! (after fx_MeshTextureSampler_Register, all sampler assigned to "diffuse_texture")
  35. #define fx_ReflectionTextureSampler_Register        0
  36. #define fx_EnvTextureSampler_Register               1
  37. #define fx_Diffuse2Sampler_Register                 2
  38. #define fx_NormalTextureSampler_Register            3
  39. #define fx_SpecularTextureSampler_Register          4
  40. #define fx_DepthTextureSampler_Register             5
  41. #define fx_CubicTextureSampler_Register             6
  42. #define fx_ShadowmapTextureSampler_Register         7
  43. #define fx_ScreenTextureSampler_Register            8
  44. #define fx_MeshTextureSampler_Register              9
  45. #define fx_ClampedTextureSampler_Register           10
  46. #define fx_FontTextureSampler_Register              11
  47. #define fx_CharacterShadowTextureSampler_Register   12
  48. #define fx_MeshTextureSamplerNoFilter_Register      13
  49. #define fx_DiffuseTextureSamplerNoWrap_Register     14
  50. #define fx_GrassTextureSampler_Register             15
  51.  
  52.  
  53. // s# like versions for fx files
  54. #define fx_ReflectionTextureSampler_RegisterS       s0
  55. #define fx_EnvTextureSampler_RegisterS              s1
  56. #define fx_Diffuse2Sampler_RegisterS                s2
  57. #define fx_NormalTextureSampler_RegisterS           s3
  58. #define fx_SpecularTextureSampler_RegisterS         s4
  59. #define fx_DepthTextureSampler_RegisterS            s5
  60. #define fx_CubicTextureSampler_RegisterS            s6
  61. #define fx_ShadowmapTextureSampler_RegisterS        s7
  62. #define fx_ScreenTextureSampler_RegisterS           s8
  63. #define fx_MeshTextureSampler_RegisterS             s9
  64. #define fx_ClampedTextureSampler_RegisterS          s10
  65. #define fx_FontTextureSampler_RegisterS             s11
  66. #define fx_CharacterShadowTextureSampler_RegisterS  s12
  67. #define fx_MeshTextureSamplerNoFilter_RegisterS     s13
  68. #define fx_DiffuseTextureSamplerNoWrap_RegisterS    s14
  69. #define fx_GrassTextureSampler_RegisterS            s15
  70.                                                
  71. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement