i can change vertices and normals but i can’t find uv data
What do you mean when you say “I can’t find UV data”? What does the buffer look like and how are you getting vertices and normals?
You should be able to modify the UVs in the same way as vertices and normals.
2 Likes
mesh component
[
{
"name": "vertices",
"type": "float32",
"count": 3,
"data": []
},
{
"name": "normals",
"type": "float32",
"count": 3,
"data": []
}
]
initial buffer data
the mesh component appears to have slots for position stream and normal stream, but no uv stream
where is the uv stream
Heres an example of UV coords.
[
{"name":"texcoord0","type":"float32","count":2,"data":
[
0.0,0.0,
1.0,0.0,
1.0,1.0,
0.0,0.0,
1.0,1.0,
0.0,1.0
]
}
]
The UV stream will not be shown in the models properties , they can be used in the shader. Like shown here - Lightning VFX how its was made
2 Likes
