defaultVertexDeclaration.fx 737 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. // Uniforms
  2. uniform mat4 viewProjection;
  3. uniform mat4 view;
  4. #ifdef DIFFUSE
  5. uniform mat4 diffuseMatrix;
  6. uniform vec2 vDiffuseInfos;
  7. #endif
  8. #ifdef AMBIENT
  9. uniform mat4 ambientMatrix;
  10. uniform vec2 vAmbientInfos;
  11. #endif
  12. #ifdef OPACITY
  13. uniform mat4 opacityMatrix;
  14. uniform vec2 vOpacityInfos;
  15. #endif
  16. #ifdef EMISSIVE
  17. uniform vec2 vEmissiveInfos;
  18. uniform mat4 emissiveMatrix;
  19. #endif
  20. #ifdef LIGHTMAP
  21. uniform vec2 vLightmapInfos;
  22. uniform mat4 lightmapMatrix;
  23. #endif
  24. #if defined(SPECULAR) && defined(SPECULARTERM)
  25. uniform vec2 vSpecularInfos;
  26. uniform mat4 specularMatrix;
  27. #endif
  28. #ifdef BUMP
  29. uniform vec3 vBumpInfos;
  30. uniform mat4 bumpMatrix;
  31. #endif
  32. #ifdef POINTSIZE
  33. uniform float pointSize;
  34. #endif