-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[Fix] Change the default semantic to a different slot which does not map to tangents #7849
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Thanks Martin! (this came up today again, been playing with rendering the amazon lumberyard bistro) |
If we use some of the slots for instancing, is there a way to tell which are used by the engine and which are free? |
These are the default attributes engine uses for standard material (not all of them all the time, depends on material / mesh properties): engine/src/scene/shader-lib/programs/lit-shader.js Lines 28 to 36 in 2cc809e
and you can see the fixed mapping of semantic names to slots here: engine/src/platform/graphics/constants.js Lines 2148 to 2178 in 2cc809e
You could enable tracing for shader creation as well, and each created shader attributes it uses here: engine/src/platform/graphics/shader.js Line 51 in 2cc809e
|
Great info, thanks! |
Fixes #7824
use slot 11 (SEMANTIC_TEXCOORD6) instead of slot 13 (SEMANTIC_TANGENT), which is less likely to be used.