[VertexShader] SystemPosition4 VS(Position4 input) { SystemPosition4 output; PointLightInfo a = PointLights.PointLights[0]; Vector4 position = new Vector4(a.Position.XYZ(), 10); output.Position = input.Position; return(output); }
[VertexShader] SystemPosition4 VS(Position4 input) { const int MyConst = 10; for (int i = 0; i < MyConst; i++) { } for (int i = 0; i < MyOtherConst; i++) { } SystemPosition4 output; Vector4 color = Vector4.Zero; for (int i = 0; i < PointLightsInfo.MaxLights; i++) { PointLightInfo a = PointLights.PointLights[i]; color += new Vector4(a.Color, MyConst); } output.Position = input.Position; return(output); }