Open equinox2k opened 5 years ago
You can normalize a vector using Vector2/3/4.Normalize.
Not sure what you mean about the register attribute, could you clarify?
@mellinoe sorry I meant ResourceSet as per example
https://github.com/mellinoe/veldrid-samples/blob/master/src/TexturedCube/Application/Shaders/Cube.cs
Teaches me not to try and guess things from memory :)
That attribute is used to configure which Veldrid ResourceSet a field will go into. These correspond to descriptor sets in Vulkan terminology. The best way to understand the attributes purpose would be to read Veldrid’s documentation about ResourceLayouts and ResourceSets.
Trying to work out how to normalize a vector?
Is there any documentation as also trying to understand the register attribute and why numbers can be repeated?