| 448 | } |
| 449 | } |
| 450 | void lightingEngineViewscreen::applyMaterial(int tileId,const matLightDef& mat,float size, float thickness) |
| 451 | { |
| 452 | if(mat.isTransparent) |
| 453 | { |
| 454 | addOclusion(tileId,mat.transparency,thickness); |
| 455 | } |
| 456 | else |
| 457 | ocupancy[tileId]=rgbf(0,0,0); |
| 458 | if(mat.isEmiting) |
| 459 | addLight(tileId,mat.makeSource(size)); |
| 460 | } |
| 461 | bool lightingEngineViewscreen::applyMaterial(int tileId,int matType,int matIndex,float size,float thickness,const matLightDef* def) |
| 462 | { |
| 463 | matLightDef* m=getMaterialDef(matType,matIndex); |
nothing calls this directly
no test coverage detected