org.rajawali3d.materials / Material / setColorInfluence

setColorInfluence

open fun setColorInfluence(influence: Float): Unit

The color influence indicates how big the influence of the color is. This should be used in conjunction with ATexture#setInfluence(float). A value of .5 indicates an influence of 50%. This examples shows how to use 50% color and 50% texture:


      material.setColorInfluence(.5f);
      myTexture.setInfluence(.5f);
      

Parameters

influence - Float: A value in the range of [0..1] indicating the color influence. Use .5 for 50% color influence, .75 for 75% color influence, etc.

open fun setColorInfluence(influence: Float): Unit

The color influence indicates how big the influence of the color is. This should be used in conjunction with ATexture#setInfluence(float). A value of .5 indicates an influence of 50%. This examples shows how to use 50% color and 50% texture:


      material.setColorInfluence(.5f);
      myTexture.setInfluence(.5f);
      

Parameters

influence - Float: A value in the range of [0..1] indicating the color influence. Use .5 for 50% color influence, .75 for 75% color influence, etc.