Hi,
can’t seem to find how to access the Channel Remapping values, I want to change dynamically R value (Metallic) that way my lava terrain can have randomized lighting where’s emission on it so it seems more lively.
Hi! I think you can try these lines of code :
var yourLayer = _terrain.terrainData.terrainLayers[0];
var maxVal = 0.8f;
var minVal = 0.2f;
yourLayer.maskMapRemapMax = new Vector4(maxVal,1,1,1);
yourLayer.maskMapRemapMin = new Vector4(minVal,0,0,0);
I hope it will help you