| 1234567891011121314151617181920212223242526 |
- mixin LineGizmoBase
- {
- code
- {
- cbuffer Uniforms
- {
- float4x4 gMatViewProj;
- float4 gViewDir;
- }
- 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;
- }
- };
- };
|