PerObjectData.bslinc 964 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. Parameters =
  2. {
  3. mat4x4 gMatWorldViewProj : auto("WVP");
  4. mat4x4 gMatWorld : auto("W");
  5. mat4x4 gMatInvWorld : auto("IW");
  6. mat4x4 gMatWorldNoScale : auto("WNoScale");
  7. mat4x4 gMatInvWorldNoScale : auto("IWNoScale");
  8. float gWorldDeterminantSign : auto("WorldDeterminantSign");
  9. };
  10. Blocks =
  11. {
  12. Block PerObject : auto("PerObject");
  13. };
  14. Technique : base("PerObjectData") =
  15. {
  16. Language = "HLSL11";
  17. Pass =
  18. {
  19. Common =
  20. {
  21. cbuffer PerObject
  22. {
  23. float4x4 gMatWorldViewProj;
  24. float4x4 gMatWorld;
  25. float4x4 gMatInvWorld;
  26. float4x4 gMatWorldNoScale;
  27. float4x4 gMatInvWorldNoScale;
  28. float gWorldDeterminantSign;
  29. }
  30. };
  31. };
  32. };
  33. Technique : base("PerObjectData") =
  34. {
  35. Language = "GLSL";
  36. Pass =
  37. {
  38. Common =
  39. {
  40. layout(std140) uniform PerObject
  41. {
  42. mat4 gMatWorldViewProj;
  43. mat4 gMatWorld;
  44. mat4 gMatInvWorld;
  45. mat4 gMatWorldNoScale;
  46. mat4 gMatInvWorldNoScale;
  47. float gWorldDeterminantSign;
  48. };
  49. };
  50. };
  51. };