2
0

WireGizmo.bsl 465 B

1234567891011121314151617181920212223242526272829
  1. #include "$EDITOR$/GizmoCommon.bslinc"
  2. shader WireGizmo
  3. {
  4. mixin GizmoCommon;
  5. raster
  6. {
  7. fill = wire;
  8. };
  9. code
  10. {
  11. void vsmain(
  12. in float3 inPos : POSITION,
  13. in float4 color : COLOR0,
  14. out float4 oPosition : SV_Position,
  15. out float4 oColor : COLOR0)
  16. {
  17. oPosition = mul(gMatViewProj, float4(inPos.xyz, 1));
  18. oColor = color;
  19. }
  20. float4 fsmain(in float4 inPos : SV_Position, in float4 color : COLOR0) : SV_Target
  21. {
  22. return color;
  23. }
  24. };
  25. };