[SOLVED] PointSprites

I use GeomPoints to add some vertices and make them Sprites with setRenderModeThicknessā€¦ I made my custom shader for animating points and everything looks good, but now I want to texture them. So, I set TexGenAttrib.MPointSprite to nodePath and set a simple Texture, but now how I can access right texture coodrinates in the shader ?

P.S.

The solution is using of setTexTransform on nodePath.
Must be used transform TransformState.makePos2d(VBase2(0, 1)). :bulb: