Sigmmma / c20

A living knowledge base for the Halo CE modding community
https://c20.reclaimers.net
GNU General Public License v3.0
55 stars 41 forks source link

shader UV scale/offset #123

Open Jakey757 opened 3 years ago

Jakey757 commented 3 years ago

Transparent shader's UV scales are relative to model/gbxmodel UV scale. image Map UV scale 0 does no additional scaling, but 0 gets defaulted to 1 on cache build through tool. If model scale is not 0 or 1 then shader scale will cause unwanted scaling. image The solution is to have the model UV scale as offsets in the shader (shown in first picture). image

This behavior only happens with transparent_chicago. Note: the model UV scales can change when re-compiling the model.

Jakey757 commented 3 years ago

this is only an issue in h1ce, not h1a. setting uv scale to 1 properly scales uvs independently of the model scales.