[GPU] Fixed size 0 point sprites enlarged to default
This commit is contained in:
parent
3d48fde5ca
commit
8d02c5ab21
|
@ -161,7 +161,7 @@ or [precise(x)] r0.x, r0.y, r0.x
|
||||||
if_nz r0.x
|
if_nz r0.x
|
||||||
ret
|
ret
|
||||||
endif
|
endif
|
||||||
lt [precise(x)] r0.x, l(0.000000), v[0][16].z
|
ge [precise(x)] r0.x, v[0][16].z, l(0.000000)
|
||||||
movc [precise(x)] r1.x, r0.x, v[0][16].z, CB0[0][8].w
|
movc [precise(x)] r1.x, r0.x, v[0][16].z, CB0[0][8].w
|
||||||
movc [precise(y)] r1.y, r0.x, v[0][16].z, CB0[0][9].w
|
movc [precise(y)] r1.y, r0.x, v[0][16].z, CB0[0][9].w
|
||||||
max [precise(xy)] r0.xy, r1.xyxx, CB0[0][10].xxxx
|
max [precise(xy)] r0.xy, r1.xyxx, CB0[0][10].xxxx
|
||||||
|
@ -273,10 +273,10 @@ ret
|
||||||
|
|
||||||
const BYTE primitive_point_list_gs[] =
|
const BYTE primitive_point_list_gs[] =
|
||||||
{
|
{
|
||||||
68, 88, 66, 67, 6, 119,
|
68, 88, 66, 67, 237, 38,
|
||||||
40, 99, 120, 121, 153, 224,
|
189, 136, 81, 237, 37, 154,
|
||||||
111, 77, 187, 15, 15, 245,
|
9, 132, 11, 205, 136, 149,
|
||||||
37, 128, 1, 0, 0, 0,
|
67, 237, 1, 0, 0, 0,
|
||||||
136, 29, 0, 0, 5, 0,
|
136, 29, 0, 0, 5, 0,
|
||||||
0, 0, 52, 0, 0, 0,
|
0, 0, 52, 0, 0, 0,
|
||||||
184, 10, 0, 0, 248, 12,
|
184, 10, 0, 0, 248, 12,
|
||||||
|
@ -286,7 +286,7 @@ const BYTE primitive_point_list_gs[] =
|
||||||
1, 0, 0, 0, 120, 0,
|
1, 0, 0, 0, 120, 0,
|
||||||
0, 0, 1, 0, 0, 0,
|
0, 0, 1, 0, 0, 0,
|
||||||
60, 0, 0, 0, 1, 5,
|
60, 0, 0, 0, 1, 5,
|
||||||
83, 71, 0, 5, 0, 0,
|
83, 71, 0, 133, 0, 0,
|
||||||
82, 10, 0, 0, 19, 19,
|
82, 10, 0, 0, 19, 19,
|
||||||
68, 37, 60, 0, 0, 0,
|
68, 37, 60, 0, 0, 0,
|
||||||
24, 0, 0, 0, 40, 0,
|
24, 0, 0, 0, 40, 0,
|
||||||
|
@ -1070,12 +1070,12 @@ const BYTE primitive_point_list_gs[] =
|
||||||
31, 0, 4, 3, 10, 0,
|
31, 0, 4, 3, 10, 0,
|
||||||
16, 0, 0, 0, 0, 0,
|
16, 0, 0, 0, 0, 0,
|
||||||
62, 0, 0, 1, 21, 0,
|
62, 0, 0, 1, 21, 0,
|
||||||
0, 1, 49, 0, 8, 8,
|
0, 1, 29, 0, 8, 8,
|
||||||
18, 0, 16, 0, 0, 0,
|
18, 0, 16, 0, 0, 0,
|
||||||
|
0, 0, 42, 16, 32, 0,
|
||||||
|
0, 0, 0, 0, 16, 0,
|
||||||
0, 0, 1, 64, 0, 0,
|
0, 0, 1, 64, 0, 0,
|
||||||
0, 0, 0, 0, 42, 16,
|
0, 0, 0, 0, 55, 0,
|
||||||
32, 0, 0, 0, 0, 0,
|
|
||||||
16, 0, 0, 0, 55, 0,
|
|
||||||
8, 12, 18, 0, 16, 0,
|
8, 12, 18, 0, 16, 0,
|
||||||
1, 0, 0, 0, 10, 0,
|
1, 0, 0, 0, 10, 0,
|
||||||
16, 0, 0, 0, 0, 0,
|
16, 0, 0, 0, 0, 0,
|
||||||
|
|
|
@ -19,7 +19,7 @@ void main(point XeVertexPreGS xe_in[1],
|
||||||
// Shader header writes -1.0f to point_size by default, so any positive value
|
// Shader header writes -1.0f to point_size by default, so any positive value
|
||||||
// means that it was overwritten by the translated vertex shader.
|
// means that it was overwritten by the translated vertex shader.
|
||||||
float2 point_size =
|
float2 point_size =
|
||||||
xe_in[0].post_gs.pre_ps.point_params.z > 0.0f
|
xe_in[0].post_gs.pre_ps.point_params.z >= 0.0f
|
||||||
? xe_in[0].post_gs.pre_ps.point_params.zz
|
? xe_in[0].post_gs.pre_ps.point_params.zz
|
||||||
: float2(xe_point_size_x, xe_point_size_y);
|
: float2(xe_point_size_x, xe_point_size_y);
|
||||||
point_size =
|
point_size =
|
||||||
|
|
Loading…
Reference in New Issue