SpiderPig Posted July 13, 2023 Share Posted July 13, 2023 I wonder if I can pass some custom floats per vertex to a fragment shader like this or does the extracting of the vertex colors in vert shader only work with values from 0.0f to 1.0f? mesh->SetVertexColor(0, (float)1200, (float)1400, (float)6450, (float)780); Quote Link to comment Share on other sites More sharing options...
Josh Posted July 13, 2023 Share Posted July 13, 2023 Vertex colors only work with non-skinned meshes because they are stored in the bone indices slot (or bone weights, I don't remember which). They only use one byte each and store values from 0 to 255. 1 Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
SpiderPig Posted July 13, 2023 Author Share Posted July 13, 2023 Ohhh okay. Thanks, I'll try something else. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.