We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
It would be a good to have a possibility to create a textureSource directly from raw data, width and height.
const textureWidth = 1024; const textureHeight = 1024; const textureData = new Uint8Array(textureWidth * textureHeight * 4); for (let i = 0; i < textureWidth * textureHeight * 4; i += 4) { textureData[i] = 255; // r textureData[i+1] = 0; // g textureData[i+2] = 0; // b textureData[i+3] = 255; // a } ... const textureSource = createBufferFromRawData(textureData, textureWidth, textureHeight, ...otherOptions); ... <Model ...> <EntitySelector byName="Tip" textureMap={{ materialName, textureSource }} /> </Model>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
It would be a good to have a possibility to create a textureSource directly from raw data, width and height.
The text was updated successfully, but these errors were encountered: