Jump to content

extended more defines in the mesh_base material will crash


photo

Recommended Posts

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
×
×
  • Create New...