Skip to main content

character_uv_transform

Function character_uv_transform 

Source
pub fn character_uv_transform(outfit: u32) -> [f32; 4]
Expand description

The texture transform of a citizen’s outfit, as a scale and offset for uv * xy + zw. The character texture holds 8 outfits side by side, and the shader computes the diffuse U as (u + outfit) / 8, where u is the vertex texture coordinate (/512) and outfit is 0 to 7.