| 123456789101112131415161718192021222324 |
- #include "$EDITOR$/GizmoCommon.bslinc"
- mixin LineGizmoBase
- {
- mixin GizmoCommon;
- code
- {
- void vsmain(
- in float3 inPos : POSITION,
- in float4 color : COLOR0,
- out float4 oPosition : SV_Position,
- out float4 oColor : COLOR0)
- {
- oPosition = mul(gMatViewProj, float4(inPos.xyz, 1));
- oColor = color;
- }
- float4 fsmain(in float4 inPos : SV_Position, in float4 color : COLOR0) : SV_Target
- {
- return color;
- }
- };
- };
|