WebGLParameters constructor
WebGLParameters({
- String? shaderID,
- String? shaderType,
- String shaderName = '',
- String vertexShader = '',
- String fragmentShader = '',
- Map<
String, dynamic> ? defines, - int? customVertexShaderID,
- int? customFragmentShaderID,
- bool isRawShaderMaterial = false,
- String? glslVersion,
- required String precision,
- bool batching = false,
- bool instancing = false,
- bool instancingColor = false,
- bool instancingMorph = false,
- bool supportsVertexTextures = false,
- String outputColorSpace = NoColorSpace,
- bool alphaToCoverage = false,
- bool map = false,
- bool displacementMap = false,
- bool matcap = false,
- bool envMap = false,
- int? envMapMode,
- num? envMapCubeUVHeight,
- bool lightMap = false,
- bool aoMap = false,
- bool emissiveMap = false,
- bool bumpMap = false,
- bool normalMap = false,
- int morphAttributeCount = 0,
- bool normalMapObjectSpace = false,
- bool normalMapTangentSpace = false,
- bool roughnessMap = false,
- bool metalnessMap = false,
- bool anisotropy = false,
- bool anisotropyMap = false,
- bool clearcoat = false,
- bool clearcoatMap = false,
- bool clearcoatRoughnessMap = false,
- bool clearcoatNormalMap = false,
- bool dispersion = false,
- bool batchingColor = false,
- bool iridescence = false,
- bool iridescenceMap = false,
- bool iridescenceThicknessMap = false,
- bool sheen = false,
- bool sheenColorMap = false,
- bool sheenRoughnessMap = false,
- bool specularMap = false,
- bool specularIntensityMap = false,
- bool specularColorMap = false,
- bool transmission = false,
- bool transmissionMap = false,
- bool thicknessMap = false,
- bool gradientMap = false,
- bool opaque = false,
- bool alphaMap = false,
- bool alphaTest = false,
- bool alphaHash = false,
- int? combine,
- String? mapUv,
- String? aoMapUv,
- String? lightMapUv,
- String? bumpMapUv,
- String? normalMapUv,
- String? displacementMapUv,
- String? emissiveMapUv,
- String? metalnessMapUv,
- String? roughnessMapUv,
- String? anisotropyMapUv,
- String? clearcoatMapUv,
- String? clearcoatNormalMapUv,
- String? clearcoatRoughnessMapUv,
- String? iridescenceMapUv,
- String? iridescenceThicknessMapUv,
- String? sheenColorMapUv,
- String? sheenRoughnessMapUv,
- String? specularMapUv,
- String? specularColorMapUv,
- String? specularIntensityMapUv,
- String? transmissionMapUv,
- String? thicknessMapUv,
- String? alphaMapUv,
- bool vertexTangents = false,
- bool vertexColors = false,
- bool vertexAlphas = false,
- bool pointsUvs = false,
- bool fog = false,
- bool useFog = false,
- bool fogExp2 = false,
- bool flatShading = false,
- bool sizeAttenuation = false,
- bool logarithmicDepthBuffer = false,
- bool skinning = false,
- bool morphTargets = false,
- bool morphNormals = false,
- bool morphColors = false,
- int morphTargetsCount = 0,
- int? morphTextureStride,
- int numDirLights = 0,
- int numPointLights = 0,
- int numSpotLights = 0,
- int numSpotLightMaps = 0,
- int numRectAreaLights = 0,
- int numHemiLights = 0,
- int numDirLightShadows = 0,
- int numPointLightShadows = 0,
- int numSpotLightShadows = 0,
- int numSpotLightShadowsWithMaps = 0,
- int numLightProbes = 0,
- int numClippingPlanes = 0,
- int numClipIntersection = 0,
- bool dithering = false,
- bool shadowMapEnabled = false,
- int? shadowMapType,
- int? toneMapping,
- bool useLegacyLights = false,
- bool decodeVideoTexture = false,
- bool decodeVideoTextureEmissive = false,
- bool premultipliedAlpha = false,
- bool doubleSided = false,
- bool flipSided = false,
- bool useDepthPacking = false,
- int? depthPacking,
- String? index0AttributeName,
- bool extensionClipCullDistance = false,
- bool extensionMultiDraw = false,
- bool rendererExtensionParallelShaderCompile = false,
- 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,
});