toJSON method
dynamic
toJSON()
Implementation
toJSON() {
Map<String, dynamic> _json = {
"isWebGL2": isWebGL2,
"shaderID": shaderID,
"customVertexShaderID": customVertexShaderID,
"customFragmentShaderID": customFragmentShaderID,
"shaderName": shaderName,
"vertexShader": vertexShader,
"fragmentShader": fragmentShader,
"defines": defines,
"isRawShaderMaterial": isRawShaderMaterial,
"glslVersion": glslVersion,
"precision": precision,
"instancing": instancing,
"instancingColor": instancingColor,
"supportsVertexTextures": supportsVertexTextures,
"outputEncoding": outputEncoding,
"map": map,
"matcap": matcap,
"envMap": envMap,
"envMapMode": envMapMode,
"lightMap": lightMap,
"aoMap": aoMap,
"emissiveMap": emissiveMap,
"bumpMap": bumpMap,
"normalMap": normalMap,
"objectSpaceNormalMap": objectSpaceNormalMap,
"tangentSpaceNormalMap": tangentSpaceNormalMap,
"clearcoat": clearcoat,
"clearcoatMap": clearcoatMap,
"clearcoatRoughnessMap": clearcoatRoughnessMap,
"clearcoatNormalMap": clearcoatNormalMap,
"displacementMap": displacementMap,
"roughnessMap": roughnessMap,
"metalnessMap": metalnessMap,
"specularMap": specularMap,
"specularIntensityMap": specularIntensityMap,
"specularColorMap": specularColorMap,
"alphaMap": alphaMap,
"gradientMap": gradientMap,
"sheenColorMap": sheenColorMap,
"sheenRoughnessMap": sheenRoughnessMap,
"sheen": sheen,
"transmission": transmission,
"transmissionMap": transmissionMap,
"thicknessMap": thicknessMap,
"combine": combine,
"sheenColorMap": sheenColorMap,
"vertexTangents": vertexTangents,
"vertexColors": vertexColors,
"vertexUvs": vertexUvs,
"uvsVertexOnly": uvsVertexOnly,
"fog": fog,
"useFog": useFog,
"fogExp2": fogExp2,
"flatShading": flatShading,
"sizeAttenuation": sizeAttenuation,
"logarithmicDepthBuffer": logarithmicDepthBuffer,
"skinning": skinning,
"morphTargets": morphTargets,
"morphNormals": morphNormals,
"morphColors": morphColors,
"numDirLights": numDirLights,
"numPointLights": numPointLights,
"numSpotLights": numSpotLights,
"numRectAreaLights": numRectAreaLights,
"numHemiLights": numHemiLights,
"numDirLightShadows": numDirLightShadows,
"numPointLightShadows": numPointLightShadows,
"numSpotLightShadows": numSpotLightShadows,
"numClippingPlanes": numClippingPlanes,
"numClipIntersection": numClipIntersection,
"dithering": dithering,
"shadowMapEnabled": shadowMapEnabled,
"shadowMapType": shadowMapType,
"toneMapping": toneMapping,
"physicallyCorrectLights": physicallyCorrectLights,
"premultipliedAlpha": premultipliedAlpha,
"alphaTest": alphaTest,
"doubleSided": doubleSided,
"flipSided": flipSided,
"useDepthPacking": useDepthPacking,
"depthPacking": depthPacking,
"index0AttributeName": index0AttributeName,
"extensionDerivatives": extensionDerivatives,
"extensionFragDepth": extensionFragDepth,
"extensionDrawBuffers": extensionDrawBuffers,
"extensionShaderTextureLOD": extensionShaderTextureLOD,
"rendererExtensionFragDepth": rendererExtensionFragDepth,
"rendererExtensionDrawBuffers": rendererExtensionDrawBuffers,
"rendererExtensionShaderTextureLod": rendererExtensionShaderTextureLod,
"customProgramCacheKey": customProgramCacheKey,
"uniforms": uniforms,
"vertexAlphas": vertexAlphas,
"decodeVideoTexture": decodeVideoTexture,
"morphTargetsCount": morphTargetsCount,
"opaque": opaque,
"cubeUVHeight": cubeUVHeight,
"morphTextureStride": morphTextureStride
};
return _json;
}