Changeset View
Changeset View
Standalone View
Standalone View
source/blender/io/wavefront_obj/tests/obj_mtl_parser_tests.cc
| Show First 20 Lines • Show All 241 Lines • ▼ Show 20 Lines | mat[5].name = "Parser_ScaleOffset_Test"; | ||||
| kd.translation = {2.5f, 0.0f, 0.0f}; | kd.translation = {2.5f, 0.0f, 0.0f}; | ||||
| kd.image_path = "OffsetOneValue.png"; | kd.image_path = "OffsetOneValue.png"; | ||||
| tex_map_XX &ks = mat[5].tex_map_of_type(eMTLSyntaxElement::map_Ks); | tex_map_XX &ks = mat[5].tex_map_of_type(eMTLSyntaxElement::map_Ks); | ||||
| ks.scale = {1.5f, 2.5f, 1.0f}; | ks.scale = {1.5f, 2.5f, 1.0f}; | ||||
| ks.translation = {3.5f, 4.5f, 0.0f}; | ks.translation = {3.5f, 4.5f, 0.0f}; | ||||
| ks.image_path = "ScaleOffsetBothTwovalues.png"; | ks.image_path = "ScaleOffsetBothTwovalues.png"; | ||||
| tex_map_XX &ns = mat[5].tex_map_of_type(eMTLSyntaxElement::map_Ns); | tex_map_XX &ns = mat[5].tex_map_of_type(eMTLSyntaxElement::map_Ns); | ||||
| ns.scale = {0.5f, 1.0f, 1.0f}; | ns.scale = {0.5f, 1.0f, 1.0f}; | ||||
| ns.image_path = "ScaleOneValue.png"; | ns.image_path = "1.Value.png"; | ||||
| } | } | ||||
| check("materials.mtl", mat, ARRAY_SIZE(mat)); | check("materials.mtl", mat, ARRAY_SIZE(mat)); | ||||
| } | } | ||||
| } // namespace blender::io::obj | } // namespace blender::io::obj | ||||