vs.1.1 // Decl(Position, v0) // Decl(PointSize, v4) (Sprite radius) // Decl(Diffuse, v5) // Load(VisualPrCamera, c0, c3) // Load(SpriteScaleVect, c4, c4) = [tan(FovY/2)/ViewportHeight]*VisualToCamera.Column[Z] // Load(Time, c5, c5) def c8, 20.0f, 2.0f, 3.0f, 4.0f ;------------------------------------------------------------------------------ ; Vertex transformation + color ;------------------------------------------------------------------------------ ; Transform position to projection space m4x4 oPos, v0, c0 mov oD0, v5 ; just copy the diffuse ;------------------------------------------------------------------------------ ; PointSize compute ;------------------------------------------------------------------------------ mov oPts, c8.x