Assets/Live2D/Cubism/Rendering/CubismRenderer.cs
/// <summary>
/// Applies main texture for rendering.
/// </summary>
Applies main texture for rendering.
Applies main texture for rendering .
private void ApplyMainTexture()
        {
            MeshRenderer.GetPropertyBlock(SharedPropertyBlock);
            SharedPropertyBlock.SetTexture(CubismShaderVariables.MainTexture, MainTexture);
            MeshRenderer.SetPropertyBlock(SharedPropertyBlock);
        }
private void ApplyMainTexture ( ) { MeshRenderer . GetPropertyBlock ( SharedPropertyBlock ) ; SharedPropertyBlock . SetTexture ( CubismShaderVariables . MainTexture , MainTexture ) ; MeshRenderer . SetPropertyBlock ( SharedPropertyBlock ) ; }
Applies main texture for rendering.
Applies main texture for rendering .
// Write property.