SpiderPig Posted July 13, 2023 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
Josh Posted July 13, 2023 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.
SpiderPig Posted July 13, 2023 Author Posted July 13, 2023 Ohhh okay. Thanks, I'll try something else. Quote
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.