pbrVertexDeclaration.fx 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. uniform mat4 view;
  2. uniform mat4 viewProjection;
  3. #ifdef ALBEDO
  4. uniform mat4 albedoMatrix;
  5. uniform vec2 vAlbedoInfos;
  6. #endif
  7. #ifdef AMBIENT
  8. uniform mat4 ambientMatrix;
  9. uniform vec4 vAmbientInfos;
  10. #endif
  11. #ifdef OPACITY
  12. uniform mat4 opacityMatrix;
  13. uniform vec2 vOpacityInfos;
  14. #endif
  15. #ifdef EMISSIVE
  16. uniform vec2 vEmissiveInfos;
  17. uniform mat4 emissiveMatrix;
  18. #endif
  19. #ifdef LIGHTMAP
  20. uniform vec2 vLightmapInfos;
  21. uniform mat4 lightmapMatrix;
  22. #endif
  23. #ifdef REFLECTIVITY
  24. uniform vec3 vReflectivityInfos;
  25. uniform mat4 reflectivityMatrix;
  26. #endif
  27. #ifdef METALLIC_REFLECTANCE
  28. uniform vec2 vMetallicReflectanceInfos;
  29. uniform mat4 metallicReflectanceMatrix;
  30. #endif
  31. #ifdef MICROSURFACEMAP
  32. uniform vec2 vMicroSurfaceSamplerInfos;
  33. uniform mat4 microSurfaceSamplerMatrix;
  34. #endif
  35. #ifdef BUMP
  36. uniform vec3 vBumpInfos;
  37. uniform mat4 bumpMatrix;
  38. #endif
  39. #ifdef POINTSIZE
  40. uniform float pointSize;
  41. #endif
  42. // Reflection
  43. #ifdef REFLECTION
  44. uniform vec2 vReflectionInfos;
  45. uniform mat4 reflectionMatrix;
  46. #endif
  47. // Clear Coat
  48. #ifdef CLEARCOAT
  49. #ifdef CLEARCOAT_TEXTURE
  50. uniform vec2 vClearCoatInfos;
  51. uniform mat4 clearCoatMatrix;
  52. #endif
  53. #ifdef CLEARCOAT_BUMP
  54. uniform vec2 vClearCoatBumpInfos;
  55. uniform mat4 clearCoatBumpMatrix;
  56. #endif
  57. #ifdef CLEARCOAT_TINT_TEXTURE
  58. uniform vec2 vClearCoatTintInfos;
  59. uniform mat4 clearCoatTintMatrix;
  60. #endif
  61. #endif
  62. // Anisotropy
  63. #ifdef ANISOTROPIC
  64. #ifdef ANISOTROPIC_TEXTURE
  65. uniform vec2 vAnisotropyInfos;
  66. uniform mat4 anisotropyMatrix;
  67. #endif
  68. #endif
  69. // Sheen
  70. #ifdef SHEEN
  71. #ifdef SHEEN_TEXTURE
  72. uniform vec2 vSheenInfos;
  73. uniform mat4 sheenMatrix;
  74. #endif
  75. #endif
  76. // Sub Surface
  77. #ifdef SUBSURFACE
  78. #ifdef SS_REFRACTION
  79. uniform vec4 vRefractionInfos;
  80. uniform mat4 refractionMatrix;
  81. #endif
  82. #ifdef SS_THICKNESSANDMASK_TEXTURE
  83. uniform vec2 vThicknessInfos;
  84. uniform mat4 thicknessMatrix;
  85. #endif
  86. #endif