pbrUboDeclaration.fx 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. layout(std140, column_major) uniform;
  2. uniform Material
  3. {
  4. uniform vec2 vAlbedoInfos;
  5. uniform vec4 vAmbientInfos;
  6. uniform vec2 vOpacityInfos;
  7. uniform vec2 vEmissiveInfos;
  8. uniform vec2 vLightmapInfos;
  9. uniform vec3 vReflectivityInfos;
  10. uniform vec2 vMicroSurfaceSamplerInfos;
  11. uniform vec4 vRefractionInfos;
  12. uniform vec2 vReflectionInfos;
  13. uniform vec3 vReflectionPosition;
  14. uniform vec3 vReflectionSize;
  15. uniform vec3 vBumpInfos;
  16. uniform mat4 albedoMatrix;
  17. uniform mat4 ambientMatrix;
  18. uniform mat4 opacityMatrix;
  19. uniform mat4 emissiveMatrix;
  20. uniform mat4 lightmapMatrix;
  21. uniform mat4 reflectivityMatrix;
  22. uniform mat4 microSurfaceSamplerMatrix;
  23. uniform mat4 bumpMatrix;
  24. uniform vec2 vTangentSpaceParams;
  25. uniform mat4 refractionMatrix;
  26. uniform mat4 reflectionMatrix;
  27. uniform vec3 vReflectionColor;
  28. uniform vec4 vAlbedoColor;
  29. uniform vec4 vLightingIntensity;
  30. uniform vec3 vRefractionMicrosurfaceInfos;
  31. uniform vec3 vReflectionMicrosurfaceInfos;
  32. uniform vec4 vReflectivityColor;
  33. uniform vec3 vEmissiveColor;
  34. uniform float pointSize;
  35. uniform vec2 vClearCoatParams;
  36. uniform vec4 vClearCoatRefractionParams;
  37. uniform vec2 vClearCoatInfos;
  38. uniform mat4 clearCoatMatrix;
  39. uniform vec2 vClearCoatBumpInfos;
  40. uniform vec2 vClearCoatTangentSpaceParams;
  41. uniform mat4 clearCoatBumpMatrix;
  42. uniform vec4 vClearCoatTintParams;
  43. uniform float clearCoatColorAtDistance;
  44. uniform vec2 vClearCoatTintInfos;
  45. uniform mat4 clearCoatTintMatrix;
  46. uniform vec3 vAnisotropy;
  47. uniform vec2 vAnisotropyInfos;
  48. uniform mat4 anisotropyMatrix;
  49. uniform vec4 vSheenColor;
  50. uniform vec2 vSheenInfos;
  51. uniform mat4 sheenMatrix;
  52. };
  53. uniform Scene {
  54. mat4 viewProjection;
  55. mat4 view;
  56. };