Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/intern/draw_cache_impl_displist.c
| Show First 20 Lines • Show All 505 Lines • ▼ Show 20 Lines | attr_id.nor = GPU_vertformat_attr_add( | ||||
| &format_pos_nor, "nor", GPU_COMP_I10, 3, GPU_FETCH_INT_TO_FLOAT_UNIT); | &format_pos_nor, "nor", GPU_COMP_I10, 3, GPU_FETCH_INT_TO_FLOAT_UNIT); | ||||
| attr_id.pos_hq = GPU_vertformat_attr_add( | attr_id.pos_hq = GPU_vertformat_attr_add( | ||||
| &format_pos_nor_hq, "pos", GPU_COMP_F32, 3, GPU_FETCH_FLOAT); | &format_pos_nor_hq, "pos", GPU_COMP_F32, 3, GPU_FETCH_FLOAT); | ||||
| attr_id.nor_hq = GPU_vertformat_attr_add( | attr_id.nor_hq = GPU_vertformat_attr_add( | ||||
| &format_pos_nor_hq, "nor", GPU_COMP_I16, 3, GPU_FETCH_INT_TO_FLOAT_UNIT); | &format_pos_nor_hq, "nor", GPU_COMP_I16, 3, GPU_FETCH_INT_TO_FLOAT_UNIT); | ||||
| /* UVs are in [0..1] range. We can compress them. */ | /* UVs are in [0..1] range. We can compress them. */ | ||||
| attr_id.uv = GPU_vertformat_attr_add( | attr_id.uv = GPU_vertformat_attr_add( | ||||
| &format_uv, "u", GPU_COMP_I16, 2, GPU_FETCH_INT_TO_FLOAT_UNIT); | &format_uv, "a", GPU_COMP_I16, 2, GPU_FETCH_INT_TO_FLOAT_UNIT); | ||||
| GPU_vertformat_alias_add(&format_uv, "au"); | GPU_vertformat_alias_add(&format_uv, "au"); | ||||
| attr_id.tan = GPU_vertformat_attr_add( | attr_id.tan = GPU_vertformat_attr_add( | ||||
| &format_tan, "t", GPU_COMP_I10, 4, GPU_FETCH_INT_TO_FLOAT_UNIT); | &format_tan, "t", GPU_COMP_I10, 4, GPU_FETCH_INT_TO_FLOAT_UNIT); | ||||
| GPU_vertformat_alias_add(&format_tan, "at"); | GPU_vertformat_alias_add(&format_tan, "at"); | ||||
| attr_id.tan_hq = GPU_vertformat_attr_add( | attr_id.tan_hq = GPU_vertformat_attr_add( | ||||
| &format_tan_hq, "t", GPU_COMP_I16, 3, GPU_FETCH_INT_TO_FLOAT_UNIT); | &format_tan_hq, "t", GPU_COMP_I16, 3, GPU_FETCH_INT_TO_FLOAT_UNIT); | ||||
| GPU_vertformat_alias_add(&format_tan_hq, "at"); | GPU_vertformat_alias_add(&format_tan_hq, "at"); | ||||
| ▲ Show 20 Lines • Show All 353 Lines • Show Last 20 Lines | |||||