WebGLParameters constructor

WebGLParameters({
  1. String? shaderID,
  2. String? shaderType,
  3. String shaderName = '',
  4. String vertexShader = '',
  5. String fragmentShader = '',
  6. Map<String, dynamic>? defines,
  7. int? customVertexShaderID,
  8. int? customFragmentShaderID,
  9. bool isRawShaderMaterial = false,
  10. String? glslVersion,
  11. required String precision,
  12. bool batching = false,
  13. bool instancing = false,
  14. bool instancingColor = false,
  15. bool instancingMorph = false,
  16. bool supportsVertexTextures = false,
  17. String outputColorSpace = NoColorSpace,
  18. bool alphaToCoverage = false,
  19. bool map = false,
  20. bool displacementMap = false,
  21. bool matcap = false,
  22. bool envMap = false,
  23. int? envMapMode,
  24. num? envMapCubeUVHeight,
  25. bool lightMap = false,
  26. bool aoMap = false,
  27. bool emissiveMap = false,
  28. bool bumpMap = false,
  29. bool normalMap = false,
  30. int morphAttributeCount = 0,
  31. bool normalMapObjectSpace = false,
  32. bool normalMapTangentSpace = false,
  33. bool roughnessMap = false,
  34. bool metalnessMap = false,
  35. bool anisotropy = false,
  36. bool anisotropyMap = false,
  37. bool clearcoat = false,
  38. bool clearcoatMap = false,
  39. bool clearcoatRoughnessMap = false,
  40. bool clearcoatNormalMap = false,
  41. bool dispersion = false,
  42. bool batchingColor = false,
  43. bool iridescence = false,
  44. bool iridescenceMap = false,
  45. bool iridescenceThicknessMap = false,
  46. bool sheen = false,
  47. bool sheenColorMap = false,
  48. bool sheenRoughnessMap = false,
  49. bool specularMap = false,
  50. bool specularIntensityMap = false,
  51. bool specularColorMap = false,
  52. bool transmission = false,
  53. bool transmissionMap = false,
  54. bool thicknessMap = false,
  55. bool gradientMap = false,
  56. bool opaque = false,
  57. bool alphaMap = false,
  58. bool alphaTest = false,
  59. bool alphaHash = false,
  60. int? combine,
  61. String? mapUv,
  62. String? aoMapUv,
  63. String? lightMapUv,
  64. String? bumpMapUv,
  65. String? normalMapUv,
  66. String? displacementMapUv,
  67. String? emissiveMapUv,
  68. String? metalnessMapUv,
  69. String? roughnessMapUv,
  70. String? anisotropyMapUv,
  71. String? clearcoatMapUv,
  72. String? clearcoatNormalMapUv,
  73. String? clearcoatRoughnessMapUv,
  74. String? iridescenceMapUv,
  75. String? iridescenceThicknessMapUv,
  76. String? sheenColorMapUv,
  77. String? sheenRoughnessMapUv,
  78. String? specularMapUv,
  79. String? specularColorMapUv,
  80. String? specularIntensityMapUv,
  81. String? transmissionMapUv,
  82. String? thicknessMapUv,
  83. String? alphaMapUv,
  84. bool vertexTangents = false,
  85. bool vertexColors = false,
  86. bool vertexAlphas = false,
  87. bool pointsUvs = false,
  88. bool fog = false,
  89. bool useFog = false,
  90. bool fogExp2 = false,
  91. bool flatShading = false,
  92. bool sizeAttenuation = false,
  93. bool logarithmicDepthBuffer = false,
  94. bool skinning = false,
  95. bool morphTargets = false,
  96. bool morphNormals = false,
  97. bool morphColors = false,
  98. int morphTargetsCount = 0,
  99. int? morphTextureStride,
  100. int numDirLights = 0,
  101. int numPointLights = 0,
  102. int numSpotLights = 0,
  103. int numSpotLightMaps = 0,
  104. int numRectAreaLights = 0,
  105. int numHemiLights = 0,
  106. int numDirLightShadows = 0,
  107. int numPointLightShadows = 0,
  108. int numSpotLightShadows = 0,
  109. int numSpotLightShadowsWithMaps = 0,
  110. int numLightProbes = 0,
  111. int numClippingPlanes = 0,
  112. int numClipIntersection = 0,
  113. bool dithering = false,
  114. bool shadowMapEnabled = false,
  115. int? shadowMapType,
  116. int? toneMapping,
  117. bool useLegacyLights = false,
  118. bool decodeVideoTexture = false,
  119. bool decodeVideoTextureEmissive = false,
  120. bool premultipliedAlpha = false,
  121. bool doubleSided = false,
  122. bool flipSided = false,
  123. bool useDepthPacking = false,
  124. int? depthPacking,
  125. String? index0AttributeName,
  126. bool extensionClipCullDistance = false,
  127. bool extensionMultiDraw = false,
  128. bool rendererExtensionParallelShaderCompile = false,
  129. String? customProgramCacheKey,
})

Implementation

WebGLParameters({
  this.shaderID,
  this.shaderType,
  this.shaderName = '',
  this.vertexShader = '',
  this.fragmentShader = '',
  this.defines,
  this.customVertexShaderID,
  this.customFragmentShaderID,
  this.isRawShaderMaterial = false,
  this.glslVersion,
  required this.precision,
  this.batching = false,
  this.instancing = false,
  this.instancingColor = false,
  this.instancingMorph = false,
  this.supportsVertexTextures = false,
  this.outputColorSpace = NoColorSpace,
  this.alphaToCoverage = false,
  this.map = false,
  this.displacementMap = false,
  this.matcap = false,
  this.envMap = false,
  this.envMapMode,
  this.envMapCubeUVHeight,
  this.lightMap = false,
  this.aoMap = false,
  this.emissiveMap = false,
  this.bumpMap = false,
  this.normalMap = false,

  this.morphAttributeCount = 0,

  this.normalMapObjectSpace = false,
  this.normalMapTangentSpace = false,
  this.roughnessMap = false,
  this.metalnessMap = false,

  this.anisotropy = false,
  this.anisotropyMap = false,

  this.clearcoat = false,
  this.clearcoatMap = false,
  this.clearcoatRoughnessMap = false,
  this.clearcoatNormalMap = false,

  this.dispersion = false,
  this.batchingColor = false,

  this.iridescence = false,
  this.iridescenceMap = false,
  this.iridescenceThicknessMap = false,

  this.sheen = false,
  this.sheenColorMap = false,
  this.sheenRoughnessMap = false,

  this.specularMap = false,
  this.specularIntensityMap = false,
  this.specularColorMap = false,

  this.transmission = false,
  this.transmissionMap = false,
  this.thicknessMap = false,

  this.gradientMap = false,

  this.opaque = false,

  this.alphaMap = false,
  this.alphaTest = false,
  this.alphaHash = false,

  this.combine,

  this.mapUv,
  this.aoMapUv,
  this.lightMapUv,
  this.bumpMapUv,
  this.normalMapUv,
  this.displacementMapUv,
  this.emissiveMapUv,

  this.metalnessMapUv,
  this.roughnessMapUv,

  this.anisotropyMapUv,

  this.clearcoatMapUv,
  this.clearcoatNormalMapUv,
  this.clearcoatRoughnessMapUv,

  this.iridescenceMapUv,
  this.iridescenceThicknessMapUv,

  this.sheenColorMapUv,
  this.sheenRoughnessMapUv,

  this.specularMapUv,
  this.specularColorMapUv,
  this.specularIntensityMapUv,

  this.transmissionMapUv,
  this.thicknessMapUv,

  this.alphaMapUv,

  this.vertexTangents = false,
  this.vertexColors = false,
  this.vertexAlphas = false,

  this.pointsUvs = false,
  this.fog = false,
  this.useFog = false,
  this.fogExp2 = false,

  this.flatShading = false,

  this.sizeAttenuation = false,
  this.logarithmicDepthBuffer = false,

  this.skinning = false,

  this.morphTargets = false,
  this.morphNormals = false,
  this.morphColors = false,
  this.morphTargetsCount = 0,
  this.morphTextureStride,

  this.numDirLights = 0,
  this.numPointLights = 0,
  this.numSpotLights = 0,
  this.numSpotLightMaps = 0,
  this.numRectAreaLights = 0,
  this.numHemiLights = 0,

  this.numDirLightShadows = 0,
  this.numPointLightShadows = 0,
  this.numSpotLightShadows = 0,
  this.numSpotLightShadowsWithMaps = 0,
  this.numLightProbes = 0,
  this.numClippingPlanes = 0,
  this.numClipIntersection = 0,

  this.dithering = false,

  this.shadowMapEnabled = false,
  this.shadowMapType,

  this.toneMapping,
  this.useLegacyLights = false,

  this.decodeVideoTexture = false,
  this.decodeVideoTextureEmissive = false,

  this.premultipliedAlpha = false,

  this.doubleSided = false,
  this.flipSided = false,

  this.useDepthPacking = false,
  this.depthPacking,

  this.index0AttributeName,

  this.extensionClipCullDistance = false,
  this.extensionMultiDraw = false,
  this.rendererExtensionParallelShaderCompile = false,
  this.customProgramCacheKey,
});