cinetec_tech Posted November 18, 2015 Share Posted November 18, 2015 It seems there is a limitation in the material defines. for example: <!-- light world shaders --> <shader pass="light_world" object="mesh_static" light_world="1" transparent="1" defines="BASE_LIGHT_WORLD,WORLD" workflow_defines="METALNESS,SPECULAR" receive_world_shadow_defines=",SHADOW" alpha_fade_defines=",ALPHA_FADE" detail_defines=",OVERLAY_0,MULTIPLY_0,MASK_0,OVERLAP_0,OVERLAP_1" geometry_inflation_defines=",WIRE,BALLOON" opacity_map_defines=",OPACITY_NORMAL" base_map_uv_defines="BASE_MAP_UV_0,BASE_MAP_UV_1" detail_map_uv_defines="DETAIL_MAP_UV_0,DETAIL_MAP_UV_1" aaa_defines=",AAA_1,AAA_2,AAA_3" bbb_defines=",BBB_1" ccc_defines=",CCC_1" ddd_defines=",DDD_1" vertex="core/shaders/mesh/vertex/transparent/world.vert" fragment="core/shaders/mesh/fragment/transparent/world.frag"/> the extended defines first one is a switch, rest is toggle. just add 4 more defines , when loading the material. engine will crash due to too many combinations. Link to comment
silent Posted November 20, 2015 Share Posted November 20, 2015 Hi Cinetec, We've fixed this behavior in 2.1 version.Thanks! How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
Recommended Posts