Jump to content

when make material.


photo

Recommended Posts

i got material list by getMaterial( surfaceNum ).

 

It is strange

 

example )

 

A Surface [ diffuse.dds , normal.dds , specular ]

 

i think that get material only diffuse.dds , normal.dds , specular.dds ....

 

but

 

i got material list ( diffuse.dds , normal.dds , specular and parent_diffuse.dds , parent.normal.dds , parent specular.dds ..... )

 

exception lightmap , .... extra texture

 

 

engine make step.

 

1. copy_parent_textures

2. parser xml material

3. clear_parent_textures

 

void Material::clear_parent_textures() {

for(int i = 0; i < textures.size(); i++) {

if(textures.override) return; <== right?

}

textures.clear();

}

Link to comment
  • 2 weeks later...
×
×
  • Create New...