WireGizmo.bsl 485 B

12345678910111213141516171819202122232425262728293031
  1. technique WireGizmo
  2. {
  3. raster
  4. {
  5. fill = wire;
  6. };
  7. code
  8. {
  9. cbuffer Uniforms
  10. {
  11. float4x4 gMatViewProj;
  12. float4 gViewDir;
  13. }
  14. void vsmain(
  15. in float3 inPos : POSITION,
  16. in float4 color : COLOR0,
  17. out float4 oPosition : SV_Position,
  18. out float4 oColor : COLOR0)
  19. {
  20. oPosition = mul(gMatViewProj, float4(inPos.xyz, 1));
  21. oColor = color;
  22. }
  23. float4 fsmain(in float4 inPos : SV_Position, in float4 color : COLOR0) : SV_Target
  24. {
  25. return color;
  26. }
  27. };
  28. };