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