render3d: HUD text, panels and images share a draw - the font stays bound and each vertex says what it reads
A panel and its label alternated the white and font textures, and every switch closed the overlay's draw range: 77-91 ranges a frame in town. The font atlas is now bound beside the image texture for the whole flush, and v carries 4 x the vertex's mode (0 image, 1 font, 2 flat colour) on top of its real coordinate, so only a different image texture or a clip rectangle closes a range. Town: 24 ranges. OpenGL frames byte-identical at all five viewpoints; MoltenVK with validation adds no message. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
cdfffa62bb
commit
eb1cd3e01a
4 changed files with 33 additions and 21 deletions
Binary file not shown.
|
|
@ -1771,7 +1771,7 @@ U 1b654972 vert u_screen 0 vec2 1 0
|
|||
I 1b654972 a_pos 0 vec2
|
||||
I 1b654972 a_uv 1 vec2
|
||||
I 1b654972 a_col 2 vec4
|
||||
B 1b654972 frag 1 768
|
||||
B 1b654972 frag 0 764
|
||||
U 1b654972 frag u_cascade_vp 0 mat4 5 64
|
||||
U 1b654972 frag u_cascade_split 320 float 5 16
|
||||
U 1b654972 frag u_cascade_range 400 float 5 16
|
||||
|
|
@ -1800,14 +1800,14 @@ U 1b654972 frag u_ts_on 748 float 1 0
|
|||
U 1b654972 frag u_force_cascade 752 int 1 0
|
||||
U 1b654972 frag u_cloud_shadow 756 float 1 0
|
||||
U 1b654972 frag u_time 760 float 1 0
|
||||
U 1b654972 frag u_is_font 764 float 1 0
|
||||
T 1b654972 u_brdf 2
|
||||
T 1b654972 u_irradiance 3
|
||||
T 1b654972 u_prefilter 4
|
||||
T 1b654972 u_shadow 5
|
||||
T 1b654972 u_tershadow 6
|
||||
T 1b654972 u_tex 7
|
||||
T 1b654972 u_ts_height 8
|
||||
T 1b654972 u_font 3
|
||||
T 1b654972 u_irradiance 4
|
||||
T 1b654972 u_prefilter 5
|
||||
T 1b654972 u_shadow 6
|
||||
T 1b654972 u_tershadow 7
|
||||
T 1b654972 u_tex 8
|
||||
T 1b654972 u_ts_height 9
|
||||
P 1fde9cd2 skin.vert model.frag
|
||||
B 1fde9cd2 vert 0 3344
|
||||
U 1fde9cd2 vert u_model 0 mat4 1 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue