| 1234567891011121314151617181920212223242526272829 |
- #include "$EDITOR$/GizmoCommon.bslinc"
- shader WireGizmo
- {
- mixin GizmoCommon;
- raster
- {
- fill = wire;
- };
- 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;
- }
- };
- };
|