Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

StockShader k3dCPVFatPointShader size per point?

haggi_master
Advocate

StockShader k3dCPVFatPointShader size per point?

haggi_master
Advocate
Advocate

Hi,

I have an Override which uses a k3dCPVFatPointShader created with shaderManager->getStockShader(MHWRender::MShaderManager::k3dCPVFatPointShader);

 

Here I can can set the color per point. Is there any way to set the point size per point? As much as I can see, the stock shader only uses one size for all points.

0 Likes
Reply
534 Views
3 Replies
Replies (3)

olarn
Advocate
Advocate

Looks like the shader instance has "pointSize" parameter.

Check out .parameterList()

 

This information seems to be forwarded to "mayaPoint2Quad" fragment which appears to handle actual point render btw.

0 Likes

haggi_master
Advocate
Advocate

The point size ist set as a uniform parameter what means all points get the same size, not as a value per point. I'd like to use a different size per point if possible.

0 Likes

olarn
Advocate
Advocate

Oops I misunderstood your question.

 

I looked at the stock fat point shader source and like you said it doesn't seems to support per point size.

However there is one promising fragment called "mayaFatPointVaryingSizeShader" that get its per point size data from "getPointSize" fragment, mapped to TEXCOORD

 

I didn't investigate how to compose this to working shader yet.