PerObjectData.bslinc 696 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. Block PerCall : auto("PerCall");
  14. };
  15. Technique : base("PerObjectData") =
  16. {
  17. Pass =
  18. {
  19. Common =
  20. {
  21. cbuffer PerObject
  22. {
  23. float4x4 gMatWorld;
  24. float4x4 gMatInvWorld;
  25. float4x4 gMatWorldNoScale;
  26. float4x4 gMatInvWorldNoScale;
  27. float gWorldDeterminantSign;
  28. }
  29. cbuffer PerCall
  30. {
  31. float4x4 gMatWorldViewProj;
  32. }
  33. };
  34. };
  35. };