code: def _create_KHR_materials_clearcoat(
      self, renderer, prim, gltf_mat, brdf
  ):
      brdf.coat_color = vray.AColor(1, 1, 1, 1)
      brdf.coat_ior = 1.5
      # Clear coat amount
      gltf_clearcoat_texture = gltf_mat.get("clearcoatTexture")
      if gltf_clearcoat_texture != None:
          gltf_clearcoat_texture = self._make_texture(
              renderer, None, gltf_clearcoat_texture, transfer_func=0
          )
  
          split_tex = renderer.classes.TexAColorOp()
          split_tex.color_a = gltf_clearcoat_texture
  
          gltf_clearcoat_factor = gltf_mat.get("clearcoatFactor")
          if gltf_clearcoat_factor != None:
              split_tex.mult_a = gltf_clearcoat_factor
          else:
              split_tex.mult_a = 1.0
  
          brdf.coat_amount = split_tex.red
      else:
          gltf_clearcoat_factor = gltf_mat.get("clearcoatFactor")
          if gltf_clearcoat_factor != None:
              brdf.coat_amount = gltf_clearcoat_factor
  
      # Clear coat roughness
      gltf_clearcoat_roughness_texture = gltf_mat.get(
          "clearcoatRoughnessTexture"
      )
      if gltf_clearcoat_roughness_texture != None:
          gltf_clearcoat_roughness_texture = self._make_texture(
              renderer,
              None,
              gltf_clearcoat_roughness_texture,
              transfer_func=0,
          )
  
          split_tex = renderer.classes.TexAColorOp()
          split_tex.color_a = gltf_clearcoat_roughness_texture
  
          gltf_clearcoat_roughness_factor = gltf_mat.get(
              "clearcoatRoughnessFactor"
          )
          if gltf_clearcoat_roughness_factor != None:
              split_tex.mult_a = gltf_clearcoat_roughness_factor
          else:
              split_tex.mult_a = 1.0
  
          brdf.coat_glossiness = split_tex.green
      else:
          gltf_clearcoat_roughness_factor = gltf_mat.get(
              "clearcoatRoughnessFactor"
          )
          if gltf_clearcoat_roughness_factor != None:
              brdf.coat_glossiness = gltf_clearcoat_roughness_factor
  
      # Coat normals
      clearcoat_normal_tex = self._make_texture(
          renderer,
          prim,
          gltf_mat.get("clearcoatNormalTexture"),
          transfer_func=0,
      )
      if clearcoat_normal_tex != None:
          flipGreen_tex = renderer.classes.TexNormalMapFlip()
          flipGreen_tex.texmap = clearcoat_normal_tex
          flipGreen_tex.flip_green = True
          brdf.coat_bump_map = flipGreen_tex
          brdf.coat_bump_type = 1
  
imports: from __future__ import print_function
  import os
  import sys
  import json
  import vray
  from .None import parserUtils
  from .None import cameraUtils
  import numpy
  from tempfile import mkstemp
  import math
  import pyquaternion
  import base64
  from ..None import testUtils
label_desc: Use image node_id 21 for calling the GltfParser obj's underlying member method code with example usage: obj._create_KHR_materials_clearcoat(renderer, prim, gltf_mat, brdf) without return types