解决painting.comp中uint/float在某些设备不能编译通过的问题

dev-VirtualTexture
wuyize 2022-10-09 23:16:54 +08:00
parent cebd41fc20
commit a3f7123a6f
1 changed files with 1 additions and 1 deletions

View File

@ -875,7 +875,7 @@ void main()
if (leftChild >= bvhLength)
{
uint zIndex = bvhChildren[index].y / 65535;
float angle = (bvhChildren[index].y / 65535.0 - zIndex) * 2 * PI;
float angle = (float(bvhChildren[index].y) / 65535.0 - zIndex) * 2 * PI;
mat2 rotation = {{cos(angle), -sin(angle)}, {sin(angle), cos(angle)}};
vec2 localUV = uv - (bound.xy + bound.zw) / 2;