public FragmentInput VS(VertexGPU input) { FragmentInput output; output.Position = ShaderBuiltins.Mul(Ortho, new Vector4(input.Position, 0, 1)); output.Color = input.Color; output.Color.W = 1; return(output); }
public FragmentInput VS(VertexGPU input) { FragmentInput output; output.Position = ShaderBuiltins.Mul(Ortho, new Vector4(input.Position, 0, 1)); output.Color = new Vector4(input.Color_Int.X, input.Color_Int.Y, input.Color_Int.Z, 1) / InfoBuffer.ColorNormalizationFactor; output.Color.W = 1; return(output); }