Revert "解决painting.comp中uint/float在某些设备不能编译通过的问题"
This reverts commit a3f7123a6f
.
dev-VirtualTexture
parent
dcb882fb86
commit
5973c54a76
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue