Where is a pointPrimitive defined as being a circle? In the fragment shader?

Hello,

I love the efficiency of point primitives, but I need to figurre out a way to make them into different basic geometric shapes. I can not locate where a pointPrimitive is being defined to be a circle. My first guess was to check the fragment shader of the pointPrimitiveCollection fragment shader here, cesium/PointPrimitiveCollectionFS.glsl at main · CesiumGS/cesium · GitHub, but nothing had stood out to me as this being where the circular shape was defined.

I am still new to GLSL though, and may not be reading the shader correctly. If the circular shape of the pointPrimitive is in fact defined here, can someone please let me know. If it is not, can someone point me to where this is happening?

Thank you very much for your time,
Shane Benlolo

The answer is it is defined in Source/Shaders/PointPrimitiveCollectionFS.glsl

1 Like