Closed alexey-pelykh closed 5 years ago
Super-poor documentation:
/// Defines an injection for a new sampler added to an existing source asset.
table SamplerInjectionDef {
/// If non-empty, limits injections to materials by name
material_name: string;
/// The TextureUsage (assigned to our sampler name) which should be injected
/// into the lull.MaterialTextureDef.
usage: lull.MaterialTextureUsage;
}
Using material_name
solves the issue
please upload your complete snippet or .sfa file. I'm facing the same problem. I've normal's for each texture
update please, we need a clear explanation about your solution, cause like you said : SUPER POOR DOCUMENTATION. Need help please!
The example above should have been like (note material_name
use):
"samplers": [
{
"file": "textures/dif_silverEdges.jpg",
"name": "dif_silverEdges",
"params": {
"usage_type": "Color"
},
"injections": [
{
"material_name": "mySilverEdgesMaterial",
"usage": "BaseColor"
}
]
},
{
"file": "textures/dif_whiteCanvas.jpg",
"name": "dif_whiteCanvas",
"params": {
"usage_type": "Color"
},
"injections": [
{
"material_name": "myWhiteCanvasMaterial",
"usage": "BaseColor"
}
]
}
]
thanks a lot, works like a charm !
is caused by following:
but those are intended for different materials