How to count shader insmructions7

Kohedlo

08-05-2010 07:21:38

When material script contain manu parameters -material become invisible on submesh.

Is Example :

material 123
{
receive_shadows on
transparency_casts_shadows off
technique
{
lod_index 0
scheme Default
pass
{
lighting on
max_lights 8
start_light 0
iteration once
ambient 0 0 0 1
diffuse 1 1 1 1
specular 0 0 0 1 0
emissive 0 0 0 1
point_size 1
point_sprites off
point_size_attenuation off
point_size_min 0
point_size_max 0
scene_blend one zero
depth_check on
alpha_rejection always_pass 0
alpha_to_coverage off
transparent_sorting on
depth_write on
depth_func less_equal
depth_bias 0 0
iteration_depth_bias 0
light_scissor off
light_clip_planes off
cull_hardware clockwise
cull_software back
shading gouraud
polygon_mode solid
polygon_mode_overrideable on
normalise_normals off
fog_override false

texture_unit
{
texture floor.jpg
max_anisotropy 1
tex_coord_set 0
tex_address_mode wrap
tex_border_colour 0 0 0 1
filtering point point none
mipmap_bias 4.29497e+009
colour_op_ex modulate src_texture src_current
colour_op_multipass_fallback dest_colour zero
alpha_op_ex modulate src_texture src_current
rotate 0
scroll 0 0
scale 1 1
binding_type fragment
content_type named
}

texture_unit
{
max_anisotropy 1
tex_coord_set 0
tex_address_mode wrap
tex_border_colour 0 0 0 1
filtering point point none
mipmap_bias 4.29497e+009
colour_op_ex modulate src_texture src_current
colour_op_multipass_fallback dest_colour zero
alpha_op_ex modulate src_texture src_current
rotate 0
scroll 0 0
scale 1 1
binding_type fragment
content_type named
}

texture_unit
{
max_anisotropy 1
tex_coord_set 0
tex_address_mode wrap
tex_border_colour 0 0 0 1
filtering point point none
mipmap_bias 4.29497e+009
colour_op_ex modulate src_texture src_current
colour_op_multipass_fallback dest_colour zero
alpha_op_ex modulate src_texture src_current
rotate 0
scroll 0 0
scale 1 1
binding_type fragment
content_type named
}

texture_unit
{
max_anisotropy 1
tex_coord_set 0
tex_address_mode wrap
tex_border_colour 0 0 0 1
filtering point point none
mipmap_bias 4.29497e+009
colour_op_ex modulate src_texture src_current
colour_op_multipass_fallback dest_colour zero
alpha_op_ex modulate src_texture src_current
rotate 0
scroll 0 0
scale 1 1
binding_type fragment
content_type named
}

texture_unit
{
max_anisotropy 1
tex_coord_set 0
tex_address_mode wrap
tex_border_colour 0 0 0 1
filtering point point none
mipmap_bias 4.29497e+009
colour_op_ex modulate src_texture src_current
colour_op_multipass_fallback dest_colour zero
alpha_op_ex modulate src_texture src_current
rotate 0
scroll 0 0
scale 1 1
binding_type fragment
content_type named
}
}

}



What you think about that7 What need7 Write minimum parameters or else7

Kohedlo

08-05-2010 08:24:20

In ogre API i found clases lice - Ogre::MaterialScriptCompiler -but i understand where this in Mogre