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

This reverts commit a3f7123a6f.
dev-VirtualTexture
yang.yongquan 2022-10-11 21:57:17 +08:00
parent dcb882fb86
commit 5973c54a76
1 changed files with 1 additions and 1 deletions

View File

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