i’m working on Ogre 2.1 and i’m making a material.json. I see that only the detail_diffuse0 and the detail_normal0 can use the scale on a texture. I would like to know if that’s possible to use a scale on my roughness texture.
this is my json file:
Code: Select all
{
"samplers" :
{
"Sampler_0" :
{
"min" :"anisotropic",
"mag" :"anisotropic",
"mip" :"anisotropic",
"u" : "wrap",
"v" : "wrap",
"w" : "wrap",
"miplodbias" : 0,
"max_anisotropic" : 1,
"compare_function" : "disabled",
"border" :[1, 1, 1, 1],
"min_lod" :-3.40282e+38,
"max_lod" :3.40282e+38
},
},
"macroblocks" :
{
"Macroblock_0" :
{
"scissor_test" : false,
"depth_check" : true,
"depth_write" :true,
"depth_function" : "less_equal",
"depth_bias_constant" : 0,
"depth_bias_slope_scale" : 0,
"cull_mode" : "clockwise",
"polygon_mode" : "solid"
}
},
"blendblocks" :
{
"Blendblock_0" :
{
"alpha_to_coverage" : false,
"blendmask" : "rgba",
"separate_blend" : false,
"src_blend_factor" : "one",
"dst_blend_factor" : "zero",
"blend_operation" : "add"
},
},
"pbs" :
{
"materialA" :
{
"macroblock" : "Macroblock_0",
"blendblock" : "Blendblock_0",
"shadow_const_bias" : 0.01,
"workflow" : "specular_ogre",
"detail_diffuse0" :
{
"mode" : "NormalNonPremul" ,
"offset" : [0, 0],
"scale" : [2, 2],
"value" : 1,
"texture" : "diffuse.png",
"sampler" : "Sampler_0",
"uv" : 0
},
"detail_normal0" :
{
"offset" : [0, 0],
"scale" : [2, 2],
"value" : 1,
"texture" : "normal.png",
"sampler" : "Sampler_0",
"uv" : 0
},
"roughness" :
{
"value" : 1.0,
"texture" : "roughness.png",
[b][u]"scale" : [2, 2],[/u] ←Not working[/b]
"sampler" : "Sampler_0",
"uv" : 0
}
}
}
}
diffuse.png = http://hpics.li/f6c2823
roughness.png = http://hpics.li/ba921d2
but when i use diffuse + normal + roughness, the roughness doesn't scale and display something like this:
The scale doesn't work in the roughness, is there any alternative to make it work?
Thank you for the help